I am trying to use the Python Script LOP to reference a layer living on another LOP.
Basically, i want to replicate the Reference LOP in code, when it's set to 'reference from multi-input'
The other node that i am referencing has its save path configured with a configure Layer.
Typically, in my code, I'd like to use sthg like
GetReferences().AddReferences(<mylayer.usd>)
Can this be done ? ( i know it's using the HoudiniLayerInfo somehow).
I've tried calling the root layer, the session layer of the stage? editable stage? of the other node... it doesn't seem to work.
Should i do that with Sdf instead. Not sure how ?
(the motivation behind all this is to use the same code for working on interactive layers or layers on disk, and essentially prototype the code on a Python Script LOP)
Hope this makes sense !
Thanks a lot