rhinoscriptsyntax.HatchScale (hatch_id, scale=None)
rhinoscript.hatch.HatchScale (hatch_id, scale=None)
hatch_id |
Required. String or Guid. The identifier of a hatch object. |
scale |
Optional. Number. The scale factor. |
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. |
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)
AddHatch
AddHatches