SchematicNode
v10.0 (2012)
SchematicNode は、スケマティック ビューに表示される UI ノードを表します。
Application | Categories | Expanded | FullName |
Help | Name | NestedObjects | Nodes |
Object | Origin | OriginPath | Parent |
Selected | Type | UIInfo | |
# # Script to demonstrate how to access a SchematicNode object and to log its information. # # import some Softimage python shortcuts from sipyutils import * # Get the 'MySchematic' schematic view object in the current layout viewname = 'MySchematic' activelayout = si().Desktop.ActiveLayout v = activelayout.FindView2( viewname ) # 'MySchematic' view is not created yet if v == None: log('Creating new schematic...: %s' % (viewname)) v = activelayout.CreateView2( "Schematic", viewname ) # Python needs to convert from View to Schematic object sv = disp(v) # Log 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) ) |