Michael314 opened this issue on Jul 06, 2014 · 6 posts
Michael314 posted Sun, 06 July 2014 at 2:43 PM
I have the following code:
scaleNode = NodeByName(previewMat.ShaderTree(), prefix, actor.Name())
if scaleNode is not None:
# extract the Preview material's scale and apply it
xScale *= scaleNode.Inputs()[0].Value()
yScale *= scaleNode.Inputs()[1].Value()
zScale *= scaleNode.Inputs()[2].Value()
The nodes look as follows:
The scaleNode.Inputs()[2].Value() method returns 1 (which makes sense), but I want to get the value of 5 of the math_add as well, in order to compute the effective parameter of the node input.
Best regards,
Michael