omni.usd.commands Functions

Functions Summary:

active_edit_context

Internal. Utility to return active edit context.

ensure_parents_are_active

Internal. It will ensure parents are active. If they are not, it will change the active

get_default_camera_rotation_order_str

Internal. Gets default camera rotation order from setting /persistent/app/primCreation/DefaultCameraRotationOrder.

get_default_rotation_order_str

Internal. Gets default rotation order from setting /persistent/app/primCreation/DefaultRotationOrder.

get_default_rotation_order_type

Internal. Gets default rotation order.

post_notification

Internal. Posts notification if omni.kit.notification_manager is enabled.

prim_can_be_removed_without_destruction

Internal. A destructive remove is one that will not only edit current edit target, but also other non-anonymous layers. Why anonymous layers is not counted is because anonymous layers are writable in Kit, and it’s only existed when it’s a new stage or under session layer. Any deltas inside those anonymous layers can be safely removed. Otherwise, this function will return false, which means it will not remove prim specs in all layers, but deactivates them to avoid editing non-anonymous layers except current edit target.

remove_prim_spec

Internal. Removes prim spec from layer.

write_refinement_override_enabled_hint

Internal. If the user authors refinementEnableOverride, drop a hint in customLayerData