import sys sys.path.append('PythonScripts') import trueSpace doc = trueSpace.GetActiveDocument() doc.ClearOutTxt() timeIncrement = 10 doc.ActiveTime = 0 target = doc.Object("targetMesh") tsource = doc.Object("transformNode") posn = tsource.Position rot = tsource.Rotation target.Position = posn target.Rotation = rot target.SetFrame() verts = target.NbrVertices count = 1 source = doc.Object("targetMesh," + str(count)) tsource = doc.Object("transformNode," + str(count)) doc.ActiveTime = timeIncrement while source: for v in range(0,verts): vertex = source.GetVertex(v) x = vertex[0] y = vertex[1] z = vertex[2] target.SetVertex(v,x,y,z) target.AnimateVertex(v) posn = tsource.Position rot = tsource.Rotation target.Position = posn target.Rotation = rot target.SetFrame() count=count+1 source = doc.Object("targetMesh," + str(count)) tsource = doc.Object("transformNode," + str(count)) doc.ActiveTime = count * timeIncrement; doc.Draw() trueSpace.Stop()