Hoping someone can explain the reasoning/whats going on for a better understanding of Solaris.
If I try to run the following code just in the python script editor (or from an external process which is what I was actually trying to achieve)
from pxr import UsdRender stage = hou.pwd().editableStage() base_path = r'''test.$F4.exr''' for prim in stage.Traverse(): if prim.IsA(UsdRender.Product): product = UsdRender.Product(prim) product.GetProductNameAttr().Set(base_path)
It will error as the hou.pwd().editableStage() will return None. However, the same code works fine when put inside a pythonscript node.
Currently our design is going to have to be to generate pythonscript nodes in users scene to make stage edits, and delete the nodes after, I wanted to check my understanding is correct and you cannot edit the stage any other way?
If so, why is that?
Thanks,
L