mutate scene graph procedurally?

   1636   3   0
User Avatar
Member
11 posts
Joined:
Offline
Other than using the stagemanager node is there a way of renaming a primitive/scene graph path? Like via a wrangle? or is there a node that lets you target a path and modify the name?

Thanks.
User Avatar
Member
7741 posts
Joined: 9月 2011
Online
It's not possible to rename/delete a prim once created in USD.

The stage manager gets around this by creating a new stage and copying the primspecs from the old stage to the new one under different names. It has the draw back of flatting the layers that made up the stage though. For example if a large stage had been sublayered in, all of that data will be duplicated on output as a single new layer.
User Avatar
Member
11 posts
Joined:
Offline
Is there a way of manipulating the namespace on import? Some sort of callback that would allow you to make programatic changes?
User Avatar
Member
7741 posts
Joined: 9月 2011
Online
jGrBr
Is there a way of manipulating the namespace on import? Some sort of callback that would allow you to make programatic changes?

The alembic import node is just a python object. It is fairly trivial to make a new hda with the alembic archive as a starting point and change the logic used for naming.

The problem is export. I'm not sure if there's a way to recover the namespace when exporting.
  • Quick Links