Dynamically create material reference

   1342   1   0
User Avatar
Member
177 posts
Joined: Nov. 2015
Offline
Hi,

I've added a parameter to a subnet of Operator Path type.

Not sure if this is the correct type, but I'm using it to reference a material that is being used inside the subnet.
That way, I don't have to dig down, etc.

Anyway, I'm wanting to dynamically build the reference using script based on $OS and opname(../), etc.

I've been able to do this with string type parameters, but for some reason, it's not working here.

Any suggestions or thoughts?

Thanks,

Jim
Reel Inpsirations
Houdini Work in Progress [vimeo.com]
User Avatar
Member
177 posts
Joined: Nov. 2015
Offline
OK, I figured out that for some reason I have to alt-click in the field to turn it ‘green’ (as if there was a keyframe there) and my script works.

Not sure why that is, but it works now.
Reel Inpsirations
Houdini Work in Progress [vimeo.com]
  • Quick Links