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, or if the action registry is not currently available because the ``omni.kit.actions.core`` extension has not started yet or has been shut down).