Project
Only in Wrap4D
Computes a given Wrap project with a subprocess. It can be used for creating and executing multi-project workflows.
How does it work
The node takes a .wrap file and runs WrapCmd to compute it. It computes each frame from the project timeline. If any error occur during the computation, all processes will be terminated and the error will be displayed as the node status.
Visual Editor
Shows the compute log and frame ranges. You can copy a range to Custom Frames to recompute it.
- Requested:
frames requested for computation
- OK:
frames computed without errors
- Errors:
frames that returned computation errors
- Missing:
frames left uncomputed, for example after a subprocess crash
- Bad:
all error and missing frames
Inputs
- Input Signals
SignalYou may connect here
Project nodes, that must be computed beforehead
Output
SignalUse this signal to trigger nextProject nodes
Parameters
- Project File Name:
a project to compute file path. Supports Path Interpretation.
- Compute:
runs a node. A message shows whether computation succeeded or failed.
- Compute Frame Range:
runs a node for frame range specified. Frame range affects the context of the
Project node, not the project being computed.- Open Project:
opens a new instance of Wrap and loads a given project. It will recieve all the Environment Variables set, but not the Custom Common Dir or Custom Script.
- Auto-Compute:
if set, the node will be recomputed each time some parameter or input data is changed.
- Process Count:
amount of subprocesses to start for computing a project. You only need more than 1 processes when computing several compute intense frames or really long frame ranges.
- Custom Frames:
if specified, overrides a frame range to be computed. Otherwise the whole project timeline will be computed. However, it is possible to compute frames beyond the project timeline.
- Frame Distribution:
- Static
if set, project frames will be split evenly before running subprocesses.
- Dynamic
if set, next project frame will be given to a subprocess only after previous one was computed. Use it, if project frames take uneven time to compute.
- Dynamic Batch Size:
use this number to measure chunks instead of giving single frames for Dynamic Frame Distribution. Use it to decrease process sync overhead. E.g. if you have
10.000uneven frames you can set a Batch Size to100and be calm.- Custom Common Dir:
if specified, overrides the project’s $COMMON_DIR on computation.
- Environment Variables:
alters environment to start subprocesses in. Doesn’t affect your system environment. Values support Path Interpretation, e.g.
MY_DIR=$GALLERY_DIR/Models. Use the formatting below to set them.MY_VAR1=42 MY_VAR2 = C:/path/to/some.file MY_VAR3 = "string value with spaces"
Then you can use environment variables inside the project with System Environment Variables in Node Editor Panel params.
/path/to/file$MY_VAR1.png # interpreted to '/path/to/file42.png'
Or use Python Scripting expressions such as below.
import os os.environ["MY_VAR1"] # '42' interpret_path('$MY_VAR1') # '42'
- Custom Script:
Python code that will be executed after Python Project Script. Use it to append and override global project Python variables.
- Custom Executable:
if specified, will try to run given executable file as a WrapCmd. Otherwise the WrapCmd of this Wrap will be used.
- Custom Arguments:
use this param to alter WrapCmd subprocess properties. For details see Command Line Interface
--maxThreads=Xsets max process threads count to
X.--writingverboseif set, prints file paths written to the disk.
--timingif set, after each frame prints time consumed by each node computation.
- Compute Attempts:
total number of attempts if a subprocess crashes (e.g. due to insufficient RAM). A value of 4 allows the initial attempt and 3 retries. Successfully computed frames are not recomputed.