[Warning] [omni.usd] Warning: in _ReportErrors at line 2830 of /buildAgent/work/ca6c508eae419cf8/USD/pxr/usd/usd/stage.cpp – Could not open asset @file:/home/isaac/Documents/Prj/Zeros/zeroSimple.usd’@ for reference on prim @anon:0x17c2b7a0:World8.usd@,@anon:0x7fb19c0655d0:World8-session.usda@</World/zeroSample>. (recomposing stage on stage @anon:0x17c2b7a0:World8.usd@ <0x15aa74b0>)
@Simplychenable , Unfortunately I did not solve this problem.
I tried the method in the link you posted, got the same prompt “recomposing stage on stage”.
The context of my programming is extension APP.
As the following picture, I can print the USDA file, but can not see any thing in the viewport.
I skipped this issue by following code, but it is not added as “reference”.
async def open_stage(self):
(result,error)=await omni.usd.get_context().open_stage_async(self._path) #"file:/home/isaac/Documents/Prj/Zeros/zeroSimple.usd"
if not result:
print(f"Errors: on open stage")
else:
print(result)
How to solve the problem of “recomposing stage on stage”?
and just fyi, the URL i meant to link was “Create a Reference” and not “Add a Reference”. i’ve made the necessary change to my last post, sorry for the confusion.
I tried your last post and create the zeroSample reference successfully.
So "add" command contain another stage in the reference?
Thank you so much! ^_^