Hi all,
I have a question that should be quite basic but just don’t know how to get it works:
I am trying to move some objects from origin to a specific location.
But it goes wrong at line 6 “pt1 = (0,0,0)” – SyntaxError: unexpected token ‘Pt1’
Can anybody know why I get this syntax error?
Here is my code:
import rhinoscriptsyntax as rs
ids = rs.GetObjects(“Pick objects”,0,None,True,False)
obj = rs.ScaleObjects(ids,(0,0,0),(0.001,0.001,0.001)
pt1 = (0,0,0)
pt2 = (48.5561,-217.378,0)
vec = rs.VectorCreate(pt2, pt1)
obj = rs.MoveObjects(obj,vec)
Thank you in advance!
Jack