We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sync with @mati-nvidia about adding more ways to get prim selection by type to for better discoverability.
import omni.usd stage = omni.usd.get_context().get_stage() selection = omni.usd.get_context().get_selection() prim_paths = [] for prim in stage.Traverse(): # Change string to desired type i.e. Xform, Mesh, Scope, etc if prim.GetTypeName() == "Material": prim_path = prim.GetPath() prim_paths.append(str(prim_path)) print(prim_paths) selection.set_selected_prim_paths(prim_paths, True)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Sync with @mati-nvidia about adding more ways to get prim selection by type to for better discoverability.
The text was updated successfully, but these errors were encountered: