Model.morphshapecreatelist#

Model.morphshapecreatelist(name, option, color)#

Creates a number of new shapes from the morph list.

Parameters:
  • name (hwString) – The base name of the shape.

  • option (int) –

    The shape’s save options. Valid values are:

    0 - Save as handle and node perturbations.

    1 - Save as pure node perturbations.

  • color (int) – The color of of the shapes. Valid values are 1 through 64.

Example#

Create shapes with the base name “shape” for all morphs on the morph list#
import hm
import hm.entities as ent

model = hm.Model()

model.morphshapecreatelist(name="shape", option=1, color=33)