Schematic
v10.0 (2012)
UI
Schematic represents the Schematic UI view and gives access to SchematicNode objects.
| BeginEdit | EndEdit | FindNode | FindView |
| 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 siutils import *
# Get the 'MySchematic' schematic view object in the current layout
viewname = 'MySchematic'
activelayout = sidesk.ActiveLayout
v = activelayout.FindView( viewname )
# 'MySchematic' view is not created yet
if v == None:
log('Creating new schematic...: %s' % (viewname))
v = activelayout.CreateView( "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) )
|