Hi Guys,
Copy stamping does not seem to work (or I can't get it to work) within a downstream shopnet inside of a subnet. Should this work? My subnet1's parameter interface is attempting to drive the diffuse color of a lambert node in a vop mat.
Using H15
~Caesar
copy stamp downstream to shopnet in subnet
1709 3 0- caesar
- Member
- 143 posts
- Joined: March 2014
- Offline
- Enivob
- Member
- 2540 posts
- Joined: June 2008
- Offline
- tamte
- Member
- 8591 posts
- Joined: July 2007
- Offline
you can't do that as copy copies only geometry, not the material
the copied geometry will have the same material path assigned so upon rendering it will evaluate it, but the stamp() will be invalid and will return default value
what you need to do is
EITHER
- promote your diffuse as an parameter
- set material override on Material SOP
- link the your override parm to stamped diffuse parm on subnet, this override will be stored as material_override attribute on geo therefore the values will be properly passed to mantra
OR
- avoid copystamping altogether
- promote your diffuse as an parameter
- create attribute of the same name and type on your template points and populate with diffuse color values
- transfer that attrib to copies using Attribute tab on Copy SOP
- mantra will automatically override material's parameters with attributes of the same name and type
see the file for both methods
the copied geometry will have the same material path assigned so upon rendering it will evaluate it, but the stamp() will be invalid and will return default value
what you need to do is
EITHER
- promote your diffuse as an parameter
- set material override on Material SOP
- link the your override parm to stamped diffuse parm on subnet, this override will be stored as material_override attribute on geo therefore the values will be properly passed to mantra
OR
- avoid copystamping altogether
- promote your diffuse as an parameter
- create attribute of the same name and type on your template points and populate with diffuse color values
- transfer that attrib to copies using Attribute tab on Copy SOP
- mantra will automatically override material's parameters with attributes of the same name and type
see the file for both methods
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- caesar
- Member
- 143 posts
- Joined: March 2014
- Offline
-
- Quick Links