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 inputVariables = [ a, b, c]; | |
var outputVariable = factory.getVariable('vec4','outputResult'); | |
factory.getNodeAdd().inputs(inputsVariables).output(outputVariable); | |
var normal = this.getOrCreateNormal(); | |
var lightingInputs = { | |
lights: lights | |
normal: normal, |
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
<link rel="stylesheet" type="text/css" href="http://www.(SITEWEB).com/sketchfab.css"> | |
<div class="holder"> | |
<iframe width="100%" height="100%" src="https://sketchfab.com/models/375ae80dc7e34b229cc9739b1ce92e2b/embed?autostart=1&autospin=0.2&controls=0&transparent=1&ui_watermark=0&stop_button=0&desc_button=0" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe> | |
<a class="bouton" href="#blank"> | |
<div class="bar"> | |
<div class="info-bulle"> | |
<p>Powered by <b>Sketchfab</b></p> | |
</div> | |
</div> | |
</a> |
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
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
#!/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); |
OlderNewer