Hi,
I have a few questions and capabilities I’m curious about when it comes to scripting prim placement and visibility in Omniverse.
My goal is to toggle visibility (probably with omni.kit.commands as I do not know the direct Omniverse API that handles visibility toggles - please let me know what that is if you’re familiar) of certain objects in a scene at a certain frame number, and to have the visibility reset once the timeline resets. I would like all children to appear/disappear as well.
My other goal is to set the position of certain USD references based on the current frame number. This I believe I can do with raw USD via their timeline and xform.
The main point of concern for me is that the visibility toggle appears to be an Omniverse function and not something that I can find in base USD.
My questions are:
-
Is omni.timeline interacting with the same timeline inherently part of a USD file? I looked at the docs and don’t quite understand how to achieve my goals with what’s documented there.
-
What’s the best way to programmatically toggle the visibility of a prim and its children via python API?
-
What’s the best way to create events or run scripts at a certain frame of play in Omniverse? Or just in pxr USD?
I appreciate any advice, thank you!