ScaleObjects

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.

Syntax

rhinoscriptsyntax.ScaleObjects (object_ids, origin, scale, copy=False)

rhinoscript.object.ScaleObjects (object_ids, origin, scale, copy=False)

Parameters

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).

Returns

List

A list of Guids identifying the scaled objects if successful.

Example

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 )

Also See

ScaleObject