XformTranslation

Creates a translation transformation matrix.

Syntax

rhinoscriptsyntax.XformTranslation (vector)

rhinoscript.transformation.XformTranslation (vector)

Parameters

vector

Required.  List of 3 numbers, Point3d, or Vector3d.  A 3-D translation vector.

Returns

Transform

The 4x4 transformation matrix is successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

objs = rs.GetObjects("Select objects to copy")

if objs:

    xform = rs.XformTranslation([1,0,0])

    rs.TransformObjects( objs, xform, True )

Also See

XformMirror

XformPlanarProjection

XformRotation

XformScale

XformShear