Jump to content

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


nuki

Recommended Posts

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
Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...