GraphNodes.item Method

Parent Object: GraphNodes
Defined in namespace "adsk::volume" and the header file is <Volume/Volumetric/GraphNodes.h>

Description

Function that returns the specified node using an index into the collection.

Syntax

"graphNodes_var" is a variable referencing a GraphNodes object.

returnValue = graphNodes_var.item(index)
"graphNodes_var" is a variable referencing a GraphNodes object.

#include <Volume/Volumetric/GraphNodes.h>

returnValue = graphNodes_var->item(index);
"graphNodes_var" is a variable referencing a GraphNodes object.

returnValue = graphNodes_var.item(index);

Return Value

Type Description
GraphNode Returns the specified item or null if an invalid index was specified.

Parameters

Name Type Description
index uinteger The index of the item within the collection to return. The first item in the collection has an index of 0. The nodes are in no particular order, so do not rely on a node keeping the same index as the graph changes.

Version

Introduced in version October 2026