# AddCmdData

The **AddCmdData** object is passed to the \*\*[OnAddCommands](../scripting_events/onaddcommands) \*\*event in a [script add-in](../../../scripting/script_add-ins). The script can use this to [add internal commands](../../../scripting/example_scripts/adding_a_new_internal_command) using the **AddCommand** method.

| Method Name | **Arguments** | Return Type                                 | Description                                                                                                                                                                                                               |
| ----------- | ------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AddCommand  | _none_        | _object:_[**ScriptCommand**](scriptcommand) | Adds a new internal command to Opus. The returned [**ScriptCommand**](scriptcommand) object must be properly initialized. A script add-in can add as many internal commands as it likes to the Opus internal command set. |
