Model.morphhyperpreviewbezier#

Model.morphhyperpreviewbezier(dcollection, shape)#

Draws vectors for shapes to be created using Model.morphbeziershape() if a shape is being used.

Parameters:
  • dcollection (Collection) – The collection containing the domain entities.

  • shape (Entity) – The shape entity.

Example#

Draw a vector for each handle on the collection according to the shape. This is used to preview the shapes that will be created in the autoshape panel before creating them. If symmetry is used, all handles linked the collection by symmetry will also be perturbed. If constraints are used, they will be applied to the perturbations.#
import hm
import hm.entities as ent

model = hm.Model()

model.morphhyperpreviewbezier(
    dcollection=hm.CollectionByInteractiveSelection(model, ent.Domain),
    shape=ent.Shape(model, 12),
)