enquel Posted February 15, 2015 Share Posted February 15, 2015 Hello, I am also looking for a quick high-level (without tweaking inside shaders) technique for obtaining material-based image planes. We have Op_Id, Prim_Id, certainly Shop_Id would be most useful of them all. Please help! Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted February 21, 2015 Share Posted February 21, 2015 (edited) Hello, I am also looking for a quick high-level (without tweaking inside shaders) technique for obtaining material-based image planes. We have Op_Id, Prim_Id, certainly Shop_Id would be most useful of them all. Please help! You can retrieve the shader name using "shader:name" in renderstate vex function or render state vop, from there perhaps you could hash the string to some unique id or value? This isn't exactly high-level, but once setup it could be added to all your shaders Edited February 21, 2015 by jkunz07 Quote Link to comment Share on other sites More sharing options...
Jason Posted February 23, 2015 Share Posted February 23, 2015 Perhaps shash() of the renderstate() return string would work? http://www.sidefx.com/docs/houdini14.0/vex/functions/random_shash Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.