copy stamp downstream to shopnet in subnet

   1708   3   0
User Avatar
Member
143 posts
Joined: March 2014
Offline
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

Attachments:
spire3.hiplc (1.4 MB)
1.png (48.3 KB)
2.png (64.7 KB)

User Avatar
Member
2540 posts
Joined: June 2008
Offline
Hmm… I can confirm the failure. Even using a stamp directly inside a material does not work for me.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
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

Attachments:
spire3_fix.hiplc.hipnc (1.4 MB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
143 posts
Joined: March 2014
Offline
Thank you gentlemen. Much appreciated.
  • Quick Links