php-vfxapply/plugins/executor/README.md

67 lines
1.7 KiB
Markdown
Raw Normal View History

2017-01-13 01:18:46 +00:00
Executor Plugin for VfxApply
============================
2016-12-25 16:49:43 +00:00
## Scripts
Each script command is named, and will be executed in order of appearance. Errors
will be reported and execution will stop if the exit code is non-zero, using
the names as logical pointers.
2017-01-13 01:18:46 +00:00
props:
set:
<varname>: { value:<expr>, escape:<bool> }
script:
<step>:
info: <string>
exec: <commmand>
parse: <parse-expr>
2016-12-25 16:49:43 +00:00
### Command lines
Command line uses placeholders.
{%input} The input filename, escaped for the command line
{%uinput} Unescaped input filename
{%output} The output filename, escaped for command line
{%uoutput} Unescaped outptu filename
Any parameters will also be available:
{%paramname}
And you can use `set` to assign stuff to variables.
2017-01-13 01:18:46 +00:00
### Setting variables
Setting variables is done using the `set` prop. The core syntax is:
set:
myvarname: { value:"MyValue" }
Additionally, `escape` can be used to flag that the value need to be
escaped for the command line.
myvarname: { value:"SomeValue", escape:true }
Variables set this way can be used for the command line, and the same
expressions can be used to define vars:
set:
tempfile: { value:"{%uinput}.tmp", escape:true }
script:
first:
exec "first --temp-file {%tempfile}"
2016-12-25 16:49:43 +00:00
### Parsing output
To parse the output, add a `parse` key to the command block.
parse:
regex: <- expression
2017-01-13 01:18:46 +00:00
from: <- stream for comparison (stdout or stderr)
2016-12-25 16:49:43 +00:00
frame: <- index of frame number, or leave out
fps: <- index of frames per second, or leave out