Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.getNodeNames
7.7

<node3d>.getNodeNames

Returns a list of all scene graph node names

<node3d>.getNodeNames(  
node = ''  
op = viz.OP_DEFAULT  
flags = viz.TYPE_ALL  
)  
node = ''
Name of subchild to retrieve list of node names from
op = viz.OP_DEFAULT
Can be viz.OP_DEFAULT to use the nodes default op mode or a combination of the following values:

Op modes

viz.OP_TRAVERSE

When performing an operation on a node, traverse the entire subgraph and process all subnodes as well. This is the default value.

viz.OP_OVERRIDE

When applying attributes, have them override attributes of subnodes.

viz.OP_ROOT

When performing an operation on the node, start at the root transform of the node, instead of the model. Processing the root will include all child Vizard nodes.

flags = viz.TYPE_ALL
A combination of the following node type flags:

Flag

Description

viz.TYPE_NODE

Any generic node, other than a drawable.

viz.TYPE_GROUP

Any generic group node.

viz.TYPE_TRANSFORM

Any generic transform node.

viz.TYPE_GEODE

Any geode node.

viz.TYPE_DRAWABLE

Any generic drawable.

viz.TYPE_LIGHT

Any light node.

viz.TYPE_SWITCH

Any switch node.

viz.TYPE_AVATAR

Any avatar node.

viz.TYPE_PARTICLE

Any particle system node.

viz.TYPE_TEXT

Any text node.

viz.TYPE_BACKGROUND

Any background node.

viz.TYPE_SEQUENCE

Any sequence node.

viz.TYPE_OCCLUDER

Any occluder node.

viz.TYPE_LOD

Any level-of-detail node.

viz.TYPE_ALL

All the above node types.

viz.TYPE_CHILDREN

If combined with the node types above and a node name is specified, will return the names of all the specified nodes children.

viz.TYPE_PARENTS

If combined with the node types above and a node name is specified, will return the names of all the specified nodes parents.

Remarks

This command will return a list of the names of all the scene graph nodes underneath the Vizard node. The list will contain unique, non-empty names.

Return Value

List of strings

Example

model = viz.add('gallery.ive')

print('Model contains the following scene graph nodes:')
for name in model.getNodeNames():
    print(' ',name)

See also

<node3d>.getChild
<node3d>.getChildren
<node3d>.getParents