| Previous Topic (Scripting) | Up (Contents) | Next Topic (ScriptPluginSDK) |
Job Scripting
Job scripts can be assigned to jobs to automate certain tasks before a job starts rendering (Pre Job Script), after a job finishes rendering (Post Job Script), or before and after each individual job task renders (Pre and Post Task Scripts). After you create your scripts, you can assign them to your job by right-clicking on it in the Monitor and selecting Modify Properties. The script options can be found under the Advanced tab. Note that a full path to the script is required, so it is recommended that the script file be stored in a location that is accessible by all slaves.
Job Script Specific Functions
These are functions that can only be called from Job Scripts. Their main purpose is to get information about the slave and its current job.
Slave Utilities
All functions are called by using SlaveUtils.function
| Function | Description |
| object GetCurrentJobValue( string property ) | Returns the value for the given job property. A list of these properties
can be obtained by exploring a job's directory and opening the file with the name that has this format: a_000_x_1234ABCD.job. |
| object GetCurrentSlaveInfoValue( string property ) | Returns the value for the given slave info property. A list of these
properties can be obtained by exploring the slaves directory in the repository and opening any file with a .slaveInfo extension. |
| object GetCurrentSlaveSettingValue( string property ) | Returns the value for the given slave setting property. A list of these
properties can be obtained by exploring the slaves directory in the repository and opening any file with a .slaveSettings extension. |
| object GetCurrentPluginValue( string property ) | Returns the value for the given plugin property. A list of these
properties can be obtained by exploring the job's directory and opening the plugin info file. |