Heyja,
I'm a bit lost on a tool I'm making. I want to restructure a layer to apply edits on a different hierachy. From an incoming stage I'm finding the material that trickles through to its child prims and since I won't have all those parent prims on the new layer I'd like to put that material assignment relationship on one of the child prims that I know will still exist.
Now this is a bit of a 2 parter:
1) I've got that new layer with the new prim hierachy alright.
/a.material:binding
/a/b
/a/b/c
/a/b/c.material:binding
and in that new layer
I'm moving it to
/b
/b/c.material:binding
Now all I'm trying to achieve is move the material binding from a (which happens on a different layer) onto b
what I've tried to do was rel = Sdf.RelationshipSpec(layer.GetPrimAtPath("/b"), "material:binding")
but then I'm absolutely lost how to add the materialpath to the relationship spec.
now 2) Trying to find a function that does what I want I did dir(rel) and looked at the pixar docs. Now both are very different. Where can I find the docs for the Houdini USD functions? Even in the HDK Docs they don't seem to line up.
So how do I add material:binding relationships using SDF?
thanks,
Florens
Python USD docs different to functions available in Houdini.
1273 0 0-
- florens
- Member
- 23 posts
- Joined: March 2020
- Offline
-
- Quick Links
