Hi,
i created 20 shaders called :
Cam_v1_Test_Comp_00,
Cam_v1_Test_Comp_01,
Cam_v1_Test_Comp_02, ecc…
and i'm tring in SOP to assign a different shader to each of my 20 primitives based on the $PR primitive number…
For this i'm using a Material Sop with this expression int the Material:
/shop/Cam_v1_Test_Comp_0`$PR`
The problem is that all the primitive get /shop/Cam_v1_Test_Comp_00 assigned to them and i don't understand why.
if i use the copy sop to create the primitives and i stamp a variable based on $PR before the copy it works…but it's not what i need in this specific case.
Any idea?
Thanks
Sergio
Assign different shaders todifferent primitives procedurally
2056 2 1-
- stifmaister
- Member
- 14 posts
- Joined: Oct. 2008
- Offline
-
- john_z
- Member
- 45 posts
- Joined: June 2009
- Offline
Hi,
not sure, but I think that the material Sop doesn't support local variables.
The material sop help says:
You can create the string-type primitive attribute called shop_material and give a value based on groups. Should work.
not sure, but I think that the material Sop doesn't support local variables.
The material sop help says:
Under the hood, the node creates an attribute named shop_material and sets it to the pathname of the material. The scene viewer and mantra use the attribute
You can create the string-type primitive attribute called shop_material and give a value based on groups. Should work.
-
- stifmaister
- Member
- 14 posts
- Joined: Oct. 2008
- Offline
-
- Quick Links