vcPositionFrameIterator
vcPositionFrameIterator is an iterator for positions of a motion statement. Generally, this is used with a vcPathStatement object which has schema properties for handling a large amount of positional data.
Examples
Example. Get path of positions as list
from vcScript import * comp = getComponent() rx = comp.findBehaviour("Executor") mr = rx.Program.MainRoutine path = None for s in mr.Statements: if s.Type == "Path": path = s break if path: positions = list(path.Positions) print positions |
Example. Iterate positions of path statement
from vcScript import * comp = getComponent() rx = comp.findBehaviour("Executor") mr = rx.Program.MainRoutine path = None for s in mr.Statements: if s.Type == "Path": path = s break if path: for p in path.Positions: print p |