VEX Builder - VOPS, get evaluated parameter input value.

   2054   3   1
User Avatar
Member
39 posts
Joined: Jan. 2012
Offline
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?!

Similar to what the functionality of the print vop;
https://www.sidefx.com/docs/houdini/nodes/vop/print.html [www.sidefx.com]
www.aaronauty.com
User Avatar
Member
7770 posts
Joined: Sept. 2011
Offline
If it's a parameter, and not bound to anything, then won't a channel reference work?
User Avatar
Member
39 posts
Joined: Jan. 2012
Offline
Hey there.

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.
www.aaronauty.com
User Avatar
Member
7770 posts
Joined: Sept. 2011
Offline
aaronauty
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.

Usually have to render the image to find that out. A wire could be anything.
  • Quick Links