ManipulatorOrderManager#

class omni.kit.manipulator.selector.ManipulatorOrderManager#

Bases: object

A manager class that manages the order of prim manipulators.

Methods

__init__()

Constructor.

destroy()

Destroys ManipulatorOrderManager's instance.

subscribe_to_orders_changed(fn)

Subscribes a function to be called when the manipulators' orders change.

unsubscribe_to_orders_changed(id)

Unsubscribes a function from being called when the manipulators' orders change.

Attributes

orders_dict

Get the order dictionary containing the manipulator orders.

__init__()#

Constructor.

destroy()#

Destroys ManipulatorOrderManager’s instance.

subscribe_to_orders_changed(
fn: Callable,
) int#

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]