-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prim visibility does not show visibility info #72
Comments
I'm jumping back on this repo soon. I think we probably want an additional sample around the idea of "Get the visibility state of a prim" that shows the use of ComputeVisibility |
Interesting,
So should an example be using this method, or doing the traversal |
I think for most cases, I would start with this function and optimize when needed. It doesn't make sense to deal with the logic of traversal and caching if you're maybe just checking a few targeted prims. |
For future PR reference: Annoying syntax, instead of just having it as an attribute, create an Imageable, then compute it. It's not true/false, so then check against the token.
|
This example:
OpenUSD-Code-Samples/source/visibility/show-hide-prim/py_usd.py
Lines 62 to 67 in 958494b
Shows the prims attribute of visible or inherited. Inherited does not mean visible, but invisible means invisible. This is unclear. There should at least be some method showing how to check its actual visibility (based on what it inherits).
The text was updated successfully, but these errors were encountered: