Model.morphremoveconstraint#

Model.morphremoveconstraint(collectionnode, option)#

Removes constraint(s).

Parameters:
  • collectionnode (Collection) – The collection containing the input entities. Valid values are nodes or morphconstraints.

  • option (int) –

    0 - Remove nodes on collection from morph constraints.

    1 - Remove morph constraints on collection.

    2 - Remove all morph constraints.

Example#

Remove the morph constraints from the nodes selected interactively#
import hm
import hm.entities as ent

model = hm.Model()

model.morphremoveconstraint(
    collection=hm.CollectionByInteractiveSelection(model, ent.Node), mode=1
)