# OnAddCommands

The **OnAddCommands** event is called to allow your [script add-in](../../../scripting/script_add-ins) to [add internal commands](../../../scripting/example_scripts/adding_a_new_internal_command). Call the [**AddCmdData**](../scripting_objects/addcmddata)**.AddCommand** method once for each command you wish to add.

| **Method Name:**   | OnAddCommands                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Argument Type:** | [**AddCmdData**](../scripting_objects/addcmddata)                                                                                                                                                                                                                                                                                                                                                        |
| **Return Type:**   | _none_                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Description:**   | When Opus starts up, or when a script add-in is added, edited or enabled, its **OnAddCommands** method is called. This allows a script to [add internal commands](../../../scripting/example_scripts/adding_a_new_internal_command)to the Opus command set. A script can reinitialize its list of commands at any time by calling the [**Script**](../scripting_objects/script)**.InitCommands** method. |
