Schematic
v10.0 (2012)
Schematic represents the Schematic UI view and gives access to SchematicNode objects.
BeginEdit | EndEdit | FindNode | FindView |
FindView2 | GetAttributeValue | IsClassOf | IsEqualTo |
Move | Rearrange | Refresh | Resize |
SetAttributeValue | |||
Application | Categories | Floating | FullName |
Help | MemoCameras | Name | NestedObjects |
Nodes | Origin | OriginPath | Parent |
Rectangle | SelectedNodes | State | Type |
Views | Visible | ||
# # Script to demonstrate how to access a specific Schematic view object. The script creates a new view if it # doesn't already exist in the active layout. # # 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 information on the view log( 'name=%s top level nodes=%d selected nodes=%d' % (sv.Name, sv.Nodes.Count, sv.SelectedNodes.Count) ) |