Scales one or more objects. This function can be used to perform uniform or non-uniform scale transformations. Scaling is based on the active construction plane.
rhinoscriptsyntax.ScaleObjects (object_ids, origin, scale, copy=False)
rhinoscript.object.ScaleObjects (object_ids, origin, scale, copy=False)
object_ids |
Required. List. A list of strings or Guids identifying the objects to scale. |
origin |
Required. Point3d. The origin of the scale transformation. |
scale |
Required. List. A list of three numbers that identify the X axis, Y axis, and Z axis scale factors to apply. Scaling is based on the active construction plane. |
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. |
import rhinoscriptsyntax as rs
objs = rs.GetObjects("Select objects to scale")
if objs:
origin = rs.GetPoint("Origin point")
if origin:
rs.ScaleObjects( objs, origin, (2,2,2), True )