assign parameters to a shader

   2842   2   0
User Avatar
Member
313 posts
Joined: July 2005
Offline
HI
I am a student learning Houdini and renderman.
How can I use variables from other object to control a rman shader's attribute?

I tried
RIBshader “noiseShader” “noisefreq” “noiseoffset”
but it does not work. Can someone pls correct my mistake?

thanks!
User Avatar
Member
12433 posts
Joined: July 2005
Offline
You must use an expression to grab the value of the channel - the local variable $TX are only available inside certain of certain SOPs and it still doesn't mean what you're thinking it means.

You really want to do this instead:

`ch(“/obj/fog1/tx”)`
- instead of
/obj/fog1/$TX
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
313 posts
Joined: July 2005
Offline
Thanks jason!
It works!
  • Quick Links