Houdini 22.0 Nodes Geometry nodes

APEX Invoke Graph geometry node

Invokes an APEX graph with the connected inputs, and fetches the results.

On this page
Since 20.0

This node invokes an APEX graph with the connected inputs, and fetches the results. For more information on creating and running APEX graphs, see APEX graph basics and graphs for numerical operations.

Parameters

Input Bindings

Dictionary to Bind

When turned on, sets the input graph parameters from the specified dictionary attribute connected to the input Graph Inputs.

Bind to Geometry Parameter

When turned on, sets the specified input geometry parameter on the graph from the input geometry (connected to Graph Inputs). If Bind To Geometry Parameter is a graph type (ApexGraphHandle), this node tries to automatically convert the input geometry to an APEX graph. The drop-down menu displays the available geometry and graph options.

Bind Named Primitives as Inputs

When turned on, attempts to set the geometry parameters on the graph from the packed primitives connected to the Graph Inputs geometry, matching parameter names to the s@name primitive attribute.

Apply Transforms

When turned on, applies the packed primitive transforms. This parameter is available when Bind Named Primitives as Inputs is turned on.

Time Bindings

When an APEX scene is invoked (using an APEX Scene Animate SOP or APEX Scene Invoke SOP), it automatically sets various global time values (like the FPS, frame, and time) as inputs to the character’s rig graph. If a rig has, for example, an input port named FRAME, the port is set to the current frame ($FF) when executing the rig. The parameters in this section can be used to set these same time values in the rig graph.

See working with time for examples of how to set global time values as inputs to a rig graph.

Note

The time parameters in this section only take effect if there is a corresponding time port on the graph input node. For example, if the graph has an input port named FRAME, the value from the below Frame parameter sets the value of the FRAME port. The time parameters can also set the values on ports that have been renamed from their default parameter name. See creating a custom parameter name.

Time Bindings

When turned on, time parameters can be set as inputs to the rig graph. When turned off, none of the following time parameters are set.

FPS

When turned on, sets the frames per second animation setting on the graph input (as a Float). The FPS can be modified using the Global Animation Options.

The parameter name can be customized using the fps_input detail property on the graph. The default parameter name is FPS.

Frame

When turned on, sets the current frame on the graph input (as a Float).

The parameter name can be customized using the frame_input detail property on the graph. The default parameter name is FRAME.

Frame Start

When turned on, sets the global animation start frame on the graph input (as a Float).

The parameter name can be customized using the framestart_input detail property on the graph. The default parameter name is FRAMESTART.

Frame End

When turned on, sets the global animation end frame on the graph input (as a Float).

The parameter name can be customized using the frameend_input detail property on the graph. The default parameter name is FRAMEEND.

Time

When turned on, sets the current time on the graph input (as a Float).

The parameter name can be customized using the time_input detail property on the graph. The default parameter name is TIME.

Time Step

When turned on, sets the current time step on the graph input (as a Float). Time step is defined as timestep = 1.0/fps.

The parameter name can be customized using the timestep_input detail property on the graph. The default parameter name is TIMESTEP.

Output Bindings

Output Type Info

When turned on, adds additional <key>.__type__ entries to the output dictionary attribute to specify the type of the <key> if it does not have a direct representation in dictionary attributes. This is done for types like ramps, vector arrays, and geometries. When these keys are added to the dictionaries, APEX graphs and the apex.Dict type in python automatically interprets these values as the specified types.

Output Dictionary Bindings

Apex Outputs Group

The name of an output node in the APEX Graph input. All of the output ports on that node are included in the dictionary written to the output geometry.

Output Attrib

The name of the dictionary attribute to create on the output geometry.

Bind Output Geometry

When turned on, copies the geometry on the specified graph output port to this node’s output. If Bind Output Geometry is a graph type (ApexGraphHandle), this node tries to automatically convert the graph to geometry. The drop-down menu displays the available geometry and graph options.

Geometry Output Type

The type of geometry output by this node.

APEX Output

Fetches the geometry specified in Bind Output Geometry from the graph’s evaluation.

Debug Graph

Writes out a copy of the graph including various attributes containing information from the graph’s compilation and evaluation. When Debug Evaluation is turned on, a dictionary point attribute named output is created containing per-node output data.

Debug Evaluation

When turned on, and the Geometry Output Type is set to Debug Graph, writes per-node output data to this node’s output geometry.

Force Reload Graph

When turned on, reloads and recompiles the graph from the APEX Graph input.

Note

This option is useful for debugging, but should not be used in production scenes, as performance will be severely impacted.

Enable Partial Evaluation

When turned on, provides partial evaluation optimizations on the graph by only executing the portions of the graph that:

  • Depend on input parameters that have changed.

    and

  • Contribute to the outputs requested by this node.

When turned off, the evaluation assumes that all input parameters have changed, and does not check the propogation of all the individual parameters through the graph. In some cases, this can actually lead to a performance improvement, especially when there are a large number of animated input parameters, as APEX will skip checking the propagation of the large number of changed graph inputs.

Note

If there are multiple parameters in a dictionary (multiple entries in an Attribute Adjust Dictionary SOP) that is connected to this node, but only one of the parameters is changed, APEX still executes the portions of the graph that are connected to all the parameters in the dictionary. To avoid this, create separate Attribute Adjust Dictionary SOPs for different sets of parameters to isolate the graph evaluation to specific groups of parameters.

Error Handling

Sets the runtime error handling during graph evaluation.

Ignore

Silently continues graph evaluation when a runtime error is encountered.

Report As Warnings

Adds a warning to the APEX Invoke Graph SOP when a runtime error is encountered, but continues evaluation.

Abort

Adds an error to the APEX Invoke Graph SOP and halts evaluation of the graph.

Inputs

APEX Graph

The APEX graph to invoke with the Graph Inputs.

Graph Inputs

The source data for setting the graph input parameters.

Outputs

Output

The result of the graph invocation. These are the results fetched from the graph, specified in Output Dictionary Bindings and Bind Output Geometry.

See also

Geometry nodes