Model.morphupdatemvedgenodes#

Model.morphupdatemvedgenodes(nodes, hand)#

Updates the mid-nodes of the specified morph volume edge.

Parameters:
  • nodes (EntityList) – The entity node list to update.

  • hand (int) –

    0 - Do not create handles for morph volumes.

    1 - Create handles for morph volumes.

Example#

Change the nodes for the morph volume edge to be the nodes with IDs 4, 5, 6. The first and last nodes on the node list should be the original end nodes of the morph volume edge#
import hm
import hm.entities as ent

model = hm.Model()

model.morphupdatemvedgenodes(
    nodes=[ent.Node(model, 4), ent.Node(model, 5), ent.Node(model, 6)], hand=1
)