Creates a translation transformation matrix.
rhinoscriptsyntax.XformTranslation (vector)
rhinoscript.transformation.XformTranslation (vector)
vector |
Required. List of 3 numbers, Point3d, or Vector3d. A 3-D translation vector. |
Transform |
The 4x4 transformation matrix is successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
objs = rs.GetObjects("Select objects to copy")
if objs:
xform = rs.XformTranslation([1,0,0])
rs.TransformObjects( objs, xform, True )