I am looking for a method to get the evaluated value of a VOP parameter input inside of a mat context. Querying the parm using HOM is not correct, as the shader has not been evaluated, and honestly, the value is not bound to anything. I am just using VOP's to wire together primitive values, vectors and floats.
Would I first need to gather the shader code by calling;
my_shader_vop.shaderCode()
And then parse the result? Or have I missed something awfully simple?!
A channel reference only gives me greyed out value of the parameter on the object in question, as it has wire coming in.
I am looking to get the value of input the wire.
Some context. I am hoping to use this value to drive attributes on a UsdShade preview material, so I will be hopefully be writing the value to a hidden parameter that I can later evaluate.