Code: Select all
firstyarn = 473
lastyarn = 501 #last yarn to be selected
firstnode = 3
lastnode = 7 #last node to be selected
for i in range(firstyarn,lastyarn+1,1):
yarn = layerfortyquarter.GetYarn(i)
for n in range(firstnode,lastnode+1,1):
node = yarn.GetNode(n)
node.Translate(XYZ(0.0,0.0625,0.0))
A couple other problems I foresee raise these questions as well:
-Do I need to be concerning myself with slave nodes in addition to/instead of nodes?
-Will I need to include code to have TexGen re-render the window with the nodes in their new locations?
As much help as could possibly be offered is very much appreciated, and thanks in advance for your time and efforts.