Model.morphdisplayconstraints#

Model.morphdisplayconstraints(collection)#

Draws or undraws vectors to the screen for the various constraints specified on the collection. This function is used when reviewing constraints from the Morph constraints panel.

Parameters:

collection (Collection) – The collection containing the morph constraint entities to draw or undraw vectors.

Examples#

Display vectors for all morph constraints in the model#
import hm
import hm.entities as ent

model = hm.Model()

model.morphdisplayconstraints(collection=hm.Collection(model, ent.Morphconstraint))
Turn off the vector display#
import hm
import hm.entities as ent

model = hm.Model()

model.morphdisplayconstraints(
    collection=hm.CollectionByInteractiveSelection(model, ent.Morphconstraint)
)