Created
December 14, 2019 12:33
-
-
Save flushpot1125/56abd29251df9e5568e61c87af47ad28 to your computer and use it in GitHub Desktop.
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
inputs: { | |
inputValue: "number", | |
scriptLoaded: "string", | |
domElement: "domelement", | |
objPath:"string", | |
mtlPath:"string", | |
}, | |
outputs: { | |
outputValue: "number" | |
}, | |
destroy: function(inputs, outputs) { | |
}, | |
setup: function(inputs, outputs) { | |
}, | |
run: function(inputs, outputs, changedInputs) { | |
if (!inputs.scriptLoaded) { | |
return; | |
} | |
var id_obj = document.getElementById("crate-obj"); | |
id_obj.setAttribute("src",inputs.objPath); | |
var id_mtl = document.getElementById("crate-mtl"); | |
id_mtl.setAttribute("src",inputs.mtlPath); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment