Jump to content
nuki

chs() with 'snippet' or 'inline code' vop

Recommended Posts

Posted (edited)

I am doing some shader building for fun and ran into trouble fetching parameter values with the chs() function in a snippet or inline code vop inside a material builder. I just want to get the path string specified in the 'txt' parameter of the parent node, but chs('../txt') returns an empty string.
As you can see in my small example file the whole thing works fine when doing it in sop land with an attributewrangle. Since the wrangles are just snippet vops I dont have a clue what I'm doing wrong....maybe a context/bind issue? The compiler flags are identical on the wrangles snippet vop and the one in the materialbuilder.

Also, since printf() doesnt output anything from the materialbuilder I was hoping for some tips on getting var readouts for troubleshooting my shader.cheers!

 

vop_param_test.hiplc

Edited by nuki

Share this post


Link to post
Share on other sites

i haven't opened your scene, but in snippet VOP and inline VOP you generally don't use "ch" command to reference stuff. you just plug it in. it's the same as if you plug P into a Noise VOP for example.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×