@ivelin.peychev wrote:
Any hint why this doesn’t work?
################################# ### TEST Move point by vector ### ################################# import System import rhinoscriptsyntax as rs import scriptcontext as sc import Rhino def TST(): pt0_id = rs.GetObject("select point: ",rs.filter.point) pt0 = rs.coerce3dpoint(pt0_id) pt_move_transform = Rhino.Geometry.Transform.Translation.Overloads[Rhino.Geometry.Vector3d](Rhino.Geometry.Vector3d.XAxis*100) print pt_move_transform """ Help on method-descriptor Transform | Transform(...) | Transform(self: Point3d, xform: Transform) | Transforms the present point in place. The transformation matrix acts on the | left of the point. i.e., | result = transformation*point | | | xform: Transformation to apply. """ pt1 = pt0.Transform(pt_move_transform) # THIS DOESN'T SEEM TO WORK print "PT0: ", pt0 print "PT1: ", pt1 # if pt1 is not None: sc.doc.Objects.AddPoint(pt1) if __name__ == "__main__": TST()
Thanks.
Posts: 12
Participants: 2