Hi!
Since English is very poor, it is difficult to tell, please answer.
There is a question about "Schematic" newly supported by softimage2012.
Using this command, it is trying to make the script which arranges a node in the specified position.
Although the position information on each node has acquired the sample etc. to reference now, the method of going to set position information is not known.
how should it describe?
Currently, the position of the node was able to acquire.
※It has seldom changed from the sample.
↓
Code:
from siutils import *
viewname = 'MySchematic'
desktop = Application.Desktop;
activelayout = desktop.ActiveLayout
v = activelayout.FindView( viewname )
if v == None:
log('Creating new schematic...: %s' % (viewname))
v = activelayout.CreateView( "Schematic", viewname )
sv = disp(v)
for node in sv.Nodes:
(x,y,w,h) = node.UIInfo
log( 'name=%s x=%d y=%d w=%d h=%d ' % (node.Name,x,y,w,h,) )