HatchScale

Returns or modifies the scale applied to the hatch pattern when it is mapped to the hatch's plane.

Syntax

rhinoscriptsyntax.HatchScale (hatch_id, scale=None)

rhinoscript.hatch.HatchScale (hatch_id, scale=None)

Parameters

hatch_id

Required.  String or Guid.  The identifier of a hatch object.

scale

Optional.  Number.  The scale factor.

Returns

Number

If a scale factor is not specified, the current scale factor if successful.

Number

If a scale factor is specified, the previous scale factor if successful.

None

On error.

Example

import rhinoscriptsyntax as rs

objects = rs.NormalObjects()

if objects:

    for obj in objects:

        if rs.IsHatch(obj) and rs.HatchScale(obj)>1.0:

            rs.HatchScale(obj, 1.0)

Also See

AddHatch

AddHatches

HatchPattern

HatchRotation

IsHatch