Adding assets to your Add-in

Add-in should contain one or more assets. Assets can be scripts and icons that will define the actions of your add-in.

Add ins - Image 14

The Add-in Assets page is divided into three functional areas:

1.Package icon selection area.

2.File tree area.

3.Preview area for file contents.

The purpose of the buttons and the checkbox on this page:

   The TargetPath: Target Path button opens the properties window for the current icon file and allows you to set the target property (see the corresponding section on package internals).

   The Change icon… button allows you to replace the current package icon with a new one.

   The Remove Icon button deletes the current icon of the package and sets the default icon that corresponds to the type of the package being created.

   The New Folder button creates a new subfolder in the selected branch of the file tree.

   The Add Asset... button adds new files to the selected branch of the file tree.

   The Remove button removes the selected items from the file tree, except those that are locked.

   The Make Python Package checkbox adds the __init__.py file to the project so that the Python interpreter can use the project files as an externally loadable module.

Python scripts can be marked up for later compilation into files with a .pyc extension. The compilation process will be displayed on the next page of the wizard.

Add ins - Image 15

The Target Path field allows you to set the target property for each file. This can be done either manually, by typing the desired path and variable names, or by invoking the properties window when you click the gear button on the Target Path:

Add ins - Image 16

The file properties dialog box allows you to set the values of the target property and offers a convenient list of available variables. It also allows you to define the parameters of the target platform (OS type and version, CPU model) on which the file will be deployed.

Add ins - Image 17