Difference between revisions of "UM:Cli Cli Opsfile"
Line 7: | Line 7: | ||
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;"><table border="0" cellpadding="3" cellspacing="0" style="border: none; border-spacing:0px; border-collapse: collapse;"> | <div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;"><table border="0" cellpadding="3" cellspacing="0" style="border: none; border-spacing:0px; border-collapse: collapse;"> | ||
<tr style="text-align:left;vertical-align:top;"> | <tr style="text-align:left;vertical-align:top;"> | ||
− | <td bgcolor="#b9c7d5" style="width:316px; background-color:#b9c7d5; border: solid 1px #808080;" valign="top" width="316"><p class="p_CmdLineEmphasized" style="text-align: right;"><span class="f_CmdLineEmphasized">--batch- | + | <td bgcolor="#b9c7d5" style="width:316px; background-color:#b9c7d5; border: solid 1px #808080;" valign="top" width="316"><p class="p_CmdLineEmphasized" style="text-align: right;"><span class="f_CmdLineEmphasized">--batch-file <file></span></p> |
</td> | </td> | ||
<td bgcolor="#ccdfe3" style="width:751px; background-color:#ccdfe3; border: solid 1px #808080;" valign="top" width="751"><p class="p_Paragraph"><span class="f_Paragraph">Run CLI commands from file</span></p> | <td bgcolor="#ccdfe3" style="width:751px; background-color:#ccdfe3; border: solid 1px #808080;" valign="top" width="751"><p class="p_Paragraph"><span class="f_Paragraph">Run CLI commands from file</span></p> | ||
Line 27: | Line 27: | ||
<td style="width:36px; border: none" valign="top" width="36"><p class="p_DVTableText">[[File:dv_note.png|alt=dv_note]]</p> | <td style="width:36px; border: none" valign="top" width="36"><p class="p_DVTableText">[[File:dv_note.png|alt=dv_note]]</p> | ||
</td> | </td> | ||
− | <td style="width:760px; border: none" valign="middle" width="760"><p class="p_DVTableText"><span class="f_DVTableText">The "ops-file" command is left for backwards compatibility. The "batch- | + | <td style="width:760px; border: none" valign="middle" width="760"><p class="p_DVTableText"><span class="f_DVTableText">The "ops-file" command is left for backwards compatibility. The "batch-file" option is new and much more flexible and powerful. </span><span class="f_DVTableText" style="font-weight: bold;">It also supports all CLI commands.</span></p> |
</td> | </td> | ||
</tr> | </tr> | ||
Line 33: | Line 33: | ||
</div> | </div> | ||
<p class="p_DVHeader1"><span class="f_DVHeader1">Batch Mode</span></p> | <p class="p_DVHeader1"><span class="f_DVHeader1">Batch Mode</span></p> | ||
− | <p class="p_CmdLine" style="margin: 0px 0px 0px 0px;"><span class="f_DVCmdlineF" style="font-weight: bold;">--batch- | + | <p class="p_CmdLine" style="margin: 0px 0px 0px 0px;"><span class="f_DVCmdlineF" style="font-weight: bold;">--batch-file <file></span></p> |
<p class="p_CmdLine" style="margin: 0px 0px 0px 0px;"><span class="f_CmdLine"> </span></p> | <p class="p_CmdLine" style="margin: 0px 0px 0px 0px;"><span class="f_CmdLine"> </span></p> | ||
<p class="p_DVBodyText"><span class="f_DVBodyText">Run the command-line commands from the given text file. Each command line should be placed on a separate line of the file and any valid command line is allowed. The application will load the file and run each line as if you were typing them interactively.</span></p> | <p class="p_DVBodyText"><span class="f_DVBodyText">Run the command-line commands from the given text file. Each command line should be placed on a separate line of the file and any valid command line is allowed. The application will load the file and run each line as if you were typing them interactively.</span></p> |
Latest revision as of 16:23, 8 December 2014
--batch-file <file> |
Run CLI commands from file |
--ops-file <file> |
Run some commands from file |
Both these options run application commands from the given text file. The advantage of this is that the commands complete much more quickly than if run separately on the command line because the application only needs to startup, initialise and open projects or compositions once.
The "ops-file" command is left for backwards compatibility. The "batch-file" option is new and much more flexible and powerful. It also supports all CLI commands. |
Batch Mode
--batch-file <file>
Run the command-line commands from the given text file. Each command line should be placed on a separate line of the file and any valid command line is allowed. The application will load the file and run each line as if you were typing them interactively.
You do not need to include the application executable on each batch file line i.e. write batch file lines like :
-p TestProject -c Compname --splice <path>
|
Example Batch File
--project P --composition C --splice Z:\shots\dpx\056_004.001.dpx -p P -c Compname --splice Z:\shots\dpx\078_021.001.dpx --record-in 8992 --project ProjectX --import-folder S:\images\testfiles
|
Ops File
--ops-file <file>
This options allows you to take commands to run from a specified text file but is more limited in the commands it supports.
Command : |
$ nucoda_film_master --project PROJ1 \ --composition COMP1 \ --ops-file ops.txt INFO Opening project "PROJ1". INFO Opening composition "COMP1". INFO Found range (1, 5). INFO Clip added to composition. INFO SPLICE : /server/shots/shot1/clip.00001.dpx (0.03 secs) INFO Found range (1, 5). INFO Clip added to composition. INFO SPLICE : /server/shots/shot2/clip.00001.dpx (0.01 secs) INFO Found range (1, 3). INFO Clip added to composition. ... |
Commands are read from the file and then run, the project and composition are opening only once. The
project will be saved every now and then.
Supported Commands
Currently supported commands are:
• | splice |
• | overwrite |
• | add-version |
• | replace-source |
Command Format
Each operation will be on a separate line and have the following format :
<operation> <path> [record in] [source in] [track]
e.g.
splice Z:\shots\dpx\056_004.001.dpx 100 overwrite Z:\shots\test\011_v1.0001.cin 10 1 V2 replace-source Z:\server\ttt\ttt.0001.cin 95662 - V1 splice \images\test\ttt\ttt.0001.cin 1002 - V2 add-version Z:\server\scene4\78818.cin 67711 211 V3 |