The first time you open the script editor, the editing pane is empty. Once you written a script, you can save the contents of the editing pane as a script file. The script editor also lets you open existing script files and create new ones.
Scripts are saved as plain text files with an extension that denotes the scripting language. For a description of the supported scripting languages, see Introduction to Scripting in Softimage.
Although you can save script files anywhere, it is recommended that you use a standard location. This makes it easier to keep track of your scripts, especially when editing and updating them. The default location is the Data\Scripts subdirectory of your user path.
The Paths button in the Open and Save Script File browsers lets you quickly choose between various base locations, including:
Installation (Factory) is the location where the Softimage program files are installed. Scripts saved here are available to any user on the local machine. You will need to copy these scripts if you install Softimage to a new location.
Workgroup Application lets you share scripts, presets, and other data with members of your team. To set a workgroup application path, choose FileUser Preferences and set the option on the Data Management tab.
User is your user path, for example, C:\users\kilroy\Softimage\Softimage_2013. Scripts saved in this location are available to you whenever you are logged in as the same user on that installation of Softimage.
Sample Project is a project with sample scenes included with Softimage. It is not recommended to save your scripts here.
Workgroup Project is a project that can be shared with other members of your team. To set a workgroup application path, choose FileUser Preferences and set the option on the Data Management tab.
Current Project is the project that contains the open scene. You could use this folder if your script is specific to a particular project.
Factory Add-ons is the Addons subdirectory of the location where the Softimage program files are installed.
Other projects in your Projects List are listed under Projects.
Note that there is a Scripts folder in every project. This is a good location if a script is very specific to a particular project or scene, or if you want to make sure that the correct version of a script is stored with a project for the purpose of archiving.
You can save either the entire contents of the editing pane, or just the selected text.
To save the entire contents of the editing pane to disk as a script file
If the script has not been saved before, the Save Script File browser prompts you to specify a file name and folder. You should also make sure that the extension is the correct one for the language of the script. Once you supply a file name for the script, the name is displayed in the title bar of the script editor window.
You can open a saved script from the script editor's File menu, or by dragging and dropping. You can also open a script that has been registered as a custom command directly from its command button.
To open a script from the File menu
Display the Open dialog box by doing one of the following:
If the current contents of the editing pane have not been saved, you are prompted to save them. Click Yes or No as desired.
Use the Open Script File browser to select a script file and click OK.
The contents of the script file are displayed in the editing pane, and the name of the file is displayed in the script editor's title bar.
When you create a new script file, you are prompted to save the contents of the editing pane. After you have clicked Yes or No, the editing pane is cleared and the name of the script is displayed as Untitled in the script editor's title bar.
In the script editor, you can also clear the contents of the editing pane by choosing Clear Script Editor from the Edit menu. However, this does not change the name of the script as displayed in the title bar of the script editor. Accidentally choosing Save instead of Save As would then overwrite the named file on disk.