execute_action#

omni.kit.actions.core.execute_action(extension_id: str, action_id: str, *args, **kwargs)#

Find and execute an action.

Parameters:
  • extension_id – The id of the source extension that registered the action.

  • action_id – Id of the action, unique to the extension that registered it.

  • \*args – Variable length argument list which will be forwarded to execute.

  • **kwargs – Arbitrary keyword arguments that will be forwarded to execute.

Returns:

The result of executing the action, which is an arbitrary Python object that could be None (will also return None if the action was not found).