HatchRotation

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

Syntax

rhinoscriptsyntax.HatchRotation (hatch_id, rotation=None)

rhinoscript.hatch.HatchRotation (hatch_id, rotation=None)

Parameters

hatch_id

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

rotation

Optional.  Number.  The rotation angle in degrees.

Returns

Number

If a rotation angle is not specified, the current rotation angle if successful.

Number

If a rotation angle is specified, the previous rotation angle if successful.

None

On error.

Example

import rhinoscriptsyntax as rs

objects = rs.AllObjects()

if objects:

    for obj in objects:

        if rs.IsHatch(obj) and rs.HatchRotation(obj)>0:

            rs.HatchRotation(obj,0)

Also See

AddHatch

AddHatches

HatchPattern

HatchScale

IsHatch