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