Batch scripts are ASCII files that contain instructions related to a Batch job. They must have the file extension .bscript for Batch to recognize them. A Batch script is executed after the Output or Export node to which the script is associated has finished rendering.
You should consult with your system administrator when creating scripts. Scripts are created using either C shell, Korn shell, or Perl. Also, Batch scripts must have the proper file access, directory access, and execution permissions for the files, directories, and applications in the script.
When the script is executed, Flint continues with its own processes and does not wait for the script to terminate. Flint imposes no restrictions with executing scripts; however, make sure that no one else is using the system when a script is executed and that the script is approved by your system administrator.
Script variables that you can set are defined in the following table.
Variable | Description |
---|---|
BATCH_NODE_NAME | Corresponds to the name of the Output node or the Export node. This is the same name that you provide in the Queue Manager Node Name field. |
BATCH_FIRST_FRAME | Corresponds to the first frame displayed in the Queue Manager for the selected node name. |
BATCH_LAST_FRAME | Corresponds to the last frame displayed in the Queue Manager for the selected node name. |
BATCH_ASPECT_RATIO | Corresponds to the framestore aspect ratio. |
BATCH_FRAME_RATE | Applies only to scripts associated with Export nodes. This is the framerate of the final clip result. |
BATCH_FRAME_WIDTH | Applies only to scripts associated with Export nodes. Corresponds to the width of the final clip result. |
BATCH_FRAME_HEIGHT | Applies only to scripts associated with Export nodes. Corresponds to the height of the final clip result. |
BATCH_OUTPUT_DST | Applies only to scripts associated with Output nodes. Indicates the destination of the final clip result as either the Flint reel or a clip library. |
BATCH_BIT_DEPTH | Applies only to scripts associated with Export nodes. Specify the bit depth of the final clip result. |
BATCH_CROP_WIDTH | Applies only to scripts associated with Export nodes. Specify the crop width of the final clip result. |
BATCH_CROP_HEIGHT | Applies only to scripts associated with Export nodes. Specify the crop height of the final clip result. |
BATCH_FILE_FORMAT | Applies only to scripts associated with Export nodes. Indicates the numbering format of a sequence of exported images in the final clip result. This numbering sequence ensures that the order of frames in the clip is intact when you import the clip. |
BATCH_FILE_EXT | Applies only to scripts associated with Export nodes. Specifies the format to which the final clip result is being exported: Alias (.als), Cineon, Dpx (Spirit), Jpeg (.jpg), Pict (.pict), Pixar (.picio), Sgi (.sgi), SoftImage (.pic), Targa (.tga), Tdi/Maya (.iff), Tiff (.tif), or Wavefront (.rla). |
BATCH_FILE_DIR | Applies only to scripts associated with Export nodes. Indicates the file location of the final clip result. |