Moves one or more objects.
rhinoscriptsyntax.MoveObjects (object_ids, translation)
rhinoscript.object.MoveObjects (object_ids, translation)
object_ids |
Required. List. A list of strings or Guids identifying the objects to move. |
translation |
Required. Lsit of 3 numbers or Vector3d. The 3-D translation vector. |
List |
List of Guids identifying the moved objects if successful. |
import rhinoscriptsyntax as rs
ids = rs.GetObjects("Select objects to move")
if ids:
start = rs.GetPoint("Point to move from")
if start:
end = rs.GetPoint("Point to move to")
if end:
translation = end-start
rs.MoveObjects( ids, translation )