puma.snyder Posted September 11, 2005 Share Posted September 11, 2005 Basicly I need to apply several shaders at the sop level which all reference the same pointcloud, the name of the pointcloud is based on the name of the object, therefore I though I could use $OBJ in the filepath for the pointcloud. But it seems like $OBJ only gets filled when I apply the shader at the object level. Is there a similar variable which gets applied when specifying the shader at the sop level. Thanks Achim Quote Link to comment Share on other sites More sharing options...
Visual Cortex Lab Posted September 11, 2005 Share Posted September 11, 2005 I dont assume I understood or even I can be helpful since this is first time I try to asnwer a question instead of asking one.. .but.. is the 'opname(string)' expression function usefull in this case? i mean to grab the name of the pointcloud based on obj you can gives proper name to obj SOP nodes and then get the pointcloud name from them. I'm mostly sure i'm totally wrong way aint it? cheers Quote Link to comment Share on other sites More sharing options...
keltuzar Posted September 11, 2005 Share Posted September 11, 2005 sumeone is rite... `opname(".")` that will give you the name of the sop in the feild if u use `opdigits(".")` that will give you the number of the copyies sop... so if its like group1 it will give u 1 Quote Link to comment Share on other sites More sharing options...
puma.snyder Posted September 12, 2005 Author Share Posted September 12, 2005 Thanks guys, in order for opname() to work, I have "store" my shaders inside an shop network in my current object. This will do it for now, though it would be much more elegant if I could keep my shaders at a different location, as they may be used for multiple objects. If I do it as above, then I'll end up with multiple instances of the shader in each object. That's why I think $OBJ at the sop level would be much more elegant. Any other ideas? 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.