Model.morphupdatemvnodes#

Model.morphupdatemvnodes(ccollection, ncollection)#

Updates nodes on the ncollection to be registered for the morph volumes of the ccollection.

Parameters:
  • ccollection (Collection) – The collection containing the morph volume entities.

  • ncollection (Collection) – The collection containing the node entities.

Example#

Update the nodes selected interactively to be registered to the morph volumes selected also interactively#
import hm
import hm.entities as ent

model = hm.Model()

model.morphupdatemvnodes(
    ccollection=hm.CollectionByInteractiveSelection(model, ent.Morphvolume),
    ncollection=hm.CollectionByInteractiveSelection(model, ent.Node),
)

Note

If a node is not within any of the morph volumes on the ccollection or its original morph volume it will still be “registered” but not affected by any morph volume unless a morph volume is morphed to enclose that node. This can occur when morphing and the morph volumes are “inactive” (see Model.morphupdateparameter() “mvon”). Switching the morph volumes to being “active” automatically re-registers all nodes.