Evaluates a snippet of Python code in the thread local context. If
is set to
True, the code is interpreted as Python statements instead of a
Returns the thread-local evaluation context object.
Returns the thread-local Python variable dictionary.
Sets the thread local variable dictionary for Python expressions.
Sets the global work item across all threads. If
parameters that have expressions referencing the global PDG work item will
Sets the global batch item index across all threads. This is used in job scripts that are cooking batches and need to advance the item index for expression evaluation. For example, when cooking a ROP Fetch as batch this function is called before each frame to ensure the correct sub item is selected.
True, any parameter that references a work item attribute
will be dirtied and need to re-evaluate after this function is called.
Sets a flag to tell PDG that work item attributes should be time dependent.
This is necessary when cooking batch work items with per-frame attributes or
input files. For example, if the batch is cooking a simulation that has a
source geometry file set using
@pdg_input, and a different file path per
Returns the thread local active work item.
Returns the thread local active work item, and creates a channel dependency on the work item if this function is called from a Houdini channel.