This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from poster.encode import multipart_encode | |
from poster.streaminghttp import register_openers | |
import urllib2 | |
register_openers() | |
filename="../data/model.zip" | |
description="Test of the api with a simple model" | |
token_api="xxxxxxxxxxxxxxxxx" | |
title="model title" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
path="./" | |
filename="Ellly.blend" | |
file=${path}${filename} | |
description="Test of the api with a simple model" | |
token_api="ff00ff" | |
title="test upload model" | |
tags="test blender character" | |
private=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# -*- coding: utf-8 -*- | |
require "uri" | |
require "net/https" | |
require "base64" | |
require 'rubygems' | |
require "json" | |
screenshot="../data/thumbnail.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
path="./" | |
filename="Ellly.blend" | |
file=${path}${filename} | |
description="Test of the api with a simple model" | |
token_api="ff00ff" | |
title="Uber Glasses" | |
tags="test collada glasses" | |
private=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var promise = start('lryj5P1gwkVTmAI53wdqfmUWFym', { | |
"nocamera": 1, // no camera animation at start | |
"autostart": 1, // start when loaded | |
"transparent": 1, // set the background transparent | |
"controls": 0, // remove the control UI | |
"desc_button":0, // remove description UI | |
"stop_button":0 // remove the stop button | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var promise = stop(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var promise = lookat( [ 0,13,10], // eye position | |
[0,10,0], // target to lookat | |
4.3); // duration of the animation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sketchfabModule = window['sketchfab-iframe']; | |
var moduleVersion = sketchfabModule.version; | |
var Sketchfab = sketchfabModule.Sketchfab; | |
var Q = sketchfabModule.Q; | |
// example with only start stop | |
var urlid = "z9Psf5XIvSeuJYiMnuBgeRjLwql"; | |
var iframeWindow = $('#myIframe')[0]; | |
var api = new Sketchfab(iframeWindow); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sketchfabModule = window['sketchfab-iframe']; | |
var moduleVersion = sketchfabModule.version; | |
var Sketchfab = sketchfabModule.Sketchfab; | |
var Q = sketchfabModule.Q; | |
var urlid = "z9Psf5XIvSeuJYiMnuBgeRjLwql"; | |
var iframeWindow = $('#myIframeCamera')[0]; | |
var options = { | |
"nocamera": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var uploadModel( modelAsBlob, filename ) { | |
var fd = new FormData(); | |
var model = modelAsBlob; | |
fd.append( "fileModel", model, filename ); | |
fd.append( "filenameModel", filename ); | |
// for PRO |
OlderNewer