Eyeon:Manual/Tool Reference/Misc/RunCommand

From VFXPedia

< Eyeon:Manual | Tool Reference | Misc
Revision as of 19:40, 18 December 2006 by Izyk (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Run Command [Run]

Image:Icon_RunCommand.png

The RunCommand tool is used to execute an external command or batch file at certain points during a render. Choose to run a command once at the start, or at the end of a render, or have the command execute once for each frame.

An image input is not required for this tool to operate. However, if RunCommand is connected to a tool's output, the command will only be launched after that tool has finished rendering. This is often useful when connected to a Saver, to ensure that the output frame has been fully saved to disk first. If the application launched returns a non 0 result, the tool will also fail.

RunCommand can be used to net render other command line applications using the Fusion render manager, as well as a host of other useful functions.

Contents


Frame Tab

Frame Command

The first file browser in the tool is used to specify the path and parameters for the command to be run after each frame is rendered. Select the Hide checkbox to prevent the application or script from displaying a window when it is executed.

Hide

Select this checkbox to suppress the display of any window or dialog started by the command.

Wait

Enable this checkbox to cause the tool to Wait for the remote application or tool to exit before continuing. If this checkbox is cleared, the system will continue rendering without waiting for the external application.

Number A (%B) And Number B (%B)

Various wildcards can be used with the frame commands, these wildcards will be substituted at render time with the correct values.

%aoutputs the number from the Number A thumbwheel control.
%boutputs the number from the Number B thumbwheel control.
%toutputs the current frame number (without zero padding).
%ssubstituted with the text from the large text entry field.

If you want to add zero padding to the numbers generated by %t, refer to the wildcard with %0x where x is the number of characters with which to pad the value. This also works for %a and %b.

For example, test%04t.tga would return the following values at render time:

test0000.tga
test0001.tga
test0009.tga
test0010.tga

You may also pad a value with spaces by calling the wildcard as %x, where x is the number of spaces with which you would like to pad the value.

Process Priority

The Process Priority buttons provide options for selecting the priority at which the launched process runs. This determines how much processor time the launched process receives compared to other applications.

Interactive

This checkbox determines whether the launched application should run interactively, allowing user input.


RunCommand Start and End Tabs

The start and end tabs contain a file browser for a command to be run when the composition starts to render, and when the composition is done rendering.


Example

To copy the saved files from a render to another directory as each frame is rendered, save the following text in a file called copyfile.bat to your C:\ directory (the root folder).

@echo off
set parm=%1 %2
copy %1 %2
set parm=

Create or load any flow that contains a Saver. The following example assumes a Saver is set to output D:\ test0000.tga, test0001.tga etc. You may have to modify the example to match.

Add a RunCommand tool after the Saver, to ensure the Saver has finished saving first. Now enter the following text into the RunCommand tool's Frame Command text box:

C:\copytest.bat D:\test%04f.tga C:\

Select the Hide frame command check box to prevent the command prompt window from appearing briefly after every frame.

When this flow is rendered, each file will be immediately copied to the C:\ directory as it is rendered.

The RunCommand tool could be used to FTP the files to a remote drive or Abekas device on the network, to print out each frame as it is rendered, or to execute a custom image processing tool.

The RunCommand tool is not restricted to executing simple batch files. eyeonScript, VBScript, Jscript, CGI, and Perl files could also be used, as just a few examples.



The contents of this page are copyright by eyeon Software.



Tips for RunCommand (edit)

EyeonTips:Manual/Tool Reference/Misc/RunCommand