register_actions

omni.kit.menu.file.scripts.file_actions.register_actions(extension_id)

Registers file-related actions within an extension.

Parameters

extension_id (str) – The unique identifier for the extension that is registering the actions.

This method registers several actions related to file operations, including exiting the application, exiting quickly, and opening the current stage with a new edit layer. These actions are tagged as ‘File Actions’ and are made available in the application’s UI under the ‘File’ menu.