Performs a shear transformation on one or more objects. Transformation is based on the active construction plane.
rhinoscriptsyntax.ShearObjects (object_ids, origin, reference_point, angle_degrees, copy=False)
rhinoscript.object.ShearObjects (object_ids, origin, reference_point, angle_degrees, copy=False)
object_ids |
Required. tuple or list. An array of strings or Guids identifying the objects to shear. |
origin |
Required. Point3d. The origin of the shear transformation. |
reference_point |
Required. Point3d. The reference point of the shear transformation. |
angle_degrees |
Required. Number. An angle in degrees of the shear transformation, where -90.0 <= angle <= 90.0. |
copy |
Optional. Boolean. Copy the objects. If omitted, the objects will not be copied (False). |
List |
A list of Guids identifying the scaled objects if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
object_ids = rs.GetObjects("Select objects to shear")
if object_ids:
origin = rs.GetPoint("Origin point")
refpt = rs.GetPoint("Reference point")
if origin and refpt:
rs.ShearObjects( object_ids, origin, refpt, 45.0, True )