ManipulatorOrderManager#
- class omni.kit.manipulator.selector.ManipulatorOrderManager#
Bases:
objectA manager class that manages the order of prim manipulators.
Methods
__init__()Constructor.
destroy()Destroys ManipulatorOrderManager's instance.
Subscribes a function to be called when the manipulators' orders change.
Unsubscribes a function from being called when the manipulators' orders change.
Attributes
Get the order dictionary containing the manipulator orders.
- __init__()#
Constructor.
- destroy()#
Destroys ManipulatorOrderManager’s instance.
- subscribe_to_orders_changed(
- fn: Callable,
Subscribes a function to be called when the manipulators’ orders change.
- Parameters:
fn (Callable) – The function to be called when the manipulators’ orders change. The funcion’s signatrue is: void fn()
- Returns:
A unique identifier for the change function.
- Return type:
int
- unsubscribe_to_orders_changed(id: int)#
Unsubscribes a function from being called when the manipulators’ orders change.
- Parameters:
id (int) – The unique identifier of the function to be removed.
- property orders_dict: Dict[str, int]#
Get the order dictionary containing the manipulator orders.
- Returns:
A dictionary mapping manipulators’ names to their orders.
- Return type:
Dict[str, int]