This file contains hidden or 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
# | |
# texture-scrape.py url.to.fst | |
# | |
import sys, urllib.request, urllib.parse, re, json, os | |
import shutil | |
fst_url = sys.argv[1] | |
# create a temp dir to hold contents of the avatar |
This file contains hidden or 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
{ | |
"root": { | |
"children": [ | |
], | |
"data": { | |
"endFrame": 300, | |
"loopFlag": true, | |
"startFrame": 1, | |
"timeScale": 1, | |
"url": "qrc:///avatar/animations/idle.fbx" |
This file contains hidden or 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
{ | |
"root": { | |
"children": [ | |
], | |
"data": { | |
"endFrame": 83, | |
"loopFlag": false, | |
"startFrame": 83, | |
"timeScale": 1, | |
"url": "http://hifi-content.s3.amazonaws.com/ozan/dev/anim/standard_anims_160127/kneel.fbx" |
This file contains hidden or 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
// bugz-1538 repro subject script | |
// TODO: connect to domain. | |
function onMessageHandler(channel, message, sender) { | |
if (channel !== "ajt-repro") { | |
return; | |
} | |
var data = JSON.parse(message); |
This file contains hidden or 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
// Identifier for the animation state handler, we use this to remove the handler at the end of the script. | |
var animHandlerId; | |
var testTrigger = false; | |
var additiveBlendAlpha = 0.0; | |
var lookLeftRightAlpha = 0.0; | |
var lookUpDownAlpha = 0.0; | |
// Called every frame with the current value for the requested anim vars. | |
function animHandler(props) { |
This file contains hidden or 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
{ | |
"root": { | |
"children": [ | |
{ | |
"children": [ | |
], | |
"data": { | |
"endFrame": 300, | |
"loopFlag": true, | |
"startFrame": 1, |
This file contains hidden or 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
// Identifier for the animation state handler, we use this to remove the handler at the end of the script. | |
var animHandlerId; | |
var testTrigger = false; | |
var additiveBlendAlpha = 0.0; | |
var lookLeftRightAlpha = 0.0; | |
// Called every frame with the current value for the requested anim vars. | |
function animHandler(props) { | |
props.additiveBlendAlpha = additiveBlendAlpha; |
This file contains hidden or 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
{ | |
"root": { | |
"children": [ | |
{ | |
"children": [ | |
], | |
"data": { | |
"endFrame": 1, | |
"loopFlag": false, | |
"startFrame": 1, |
This file contains hidden or 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 POSITIVE_KEY = "z"; | |
var NEGATIVE_KEY = "c"; | |
var RAISE_HAND_KEY = "v"; | |
var APPLAUD_KEY = "b"; | |
var POINT_KEY = "n"; | |
function init() { | |
Controller.keyPressEvent.connect(keyPressHandler); | |
Controller.keyReleaseEvent.connect(keyReleaseHandler); |
This file contains hidden or 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
// Identifier for the animation state handler, we use this to remove the handler at the end of the script. | |
var animHandlerId; | |
var idleTrigger = false; | |
var kneelTrigger = false; | |
var slowKneelTrigger = false; | |
var jjTrigger = false; | |
var waveTrigger = false; | |
var overlayAlpha = 0.0; | |
var overlayBoneSet = 0; // fullBody |