Schematic.Nodes

Introduced

v10.0 (2012)

Description

Returns the top level SchematicNode objects of a Schematic view object in a SchematicNodeCollection object. The collection contains only the visible objects in the view. For instance, the scene root object is not visible in a schematic view and is not accessible as a top level node.

To access all children of a view, each top level's Nodes method must be called in recursion.

Examples

Python Example

#
# Script to demonstrate how to access the top level nodes of a Schematic view object. 
#
# import some Softimage python shortcuts
from siutils import *
# Creates the 'MySchematic' schematic view object in the current layout
v = sidesk.ActiveLayout.CreateView( "Schematic", 'MySchematic' )
# Python needs to convert from View to Schematic object
sv = disp(v)
# Log information on the top level nodes 
for node in sv.Nodes:
        (x,y,w,h) = node.UIInfo
        log( 'name=%s x=%d y=%d w=%d h=%d parent=%s object=%s selected=%d expanded=%d' % (node.Name,x,y,w,h,node.Parent,node.Object,node.Selected,node.Expanded) )