I currently have this working using the below;
from pxr import Sdf node = hou.pwd() layer = node.editableLayer() testEdits = [ Sdf.NamespaceEdit('/cube1', Sdf.Path.emptyPath), Sdf.NamespaceEdit('/sphere1', Sdf.Path.emptyPath), ] edit = Sdf.BatchNamespaceEdit(testEdits) layer.Apply(edit)
This is great, and working, however, I am working within a code base using a lot of calls to pxr.Usd.
I can see in the docs they cannot be mixed in the one Pythonsop, Understandable.
More of a Usd centric question, but using the pxr.Usd libraries, is it possible to do namespace type edits? Or are the lower level API's required.
Cheers,
Aaron.