Model.morphcombinemorphvolumes#

Model.morphcombinemorphvolumes(h1, h2, hand, tangent)#

Combines the specified morph volumes and propagates the combination.

Parameters:
  • h1 (Entity) – The entity of the first morph volume.

  • h2 (Entity) – The entity of the second morph volume.

  • hand (int) –

    0 - Do not create handles for morph volumes

    1 - Create handles for morph volumes

  • tangent (int) –

    0 - No tangency

    1 - Make neighboring morph volume edges continuously tangent

Example#

Combine the morph volumes with IDs 21 , 22 and propagate the effect through the entire morph volume “ matrix “ so that it remains consistent .#
import hm
import hm.entities as ent

model = hm.Model()

model.morphcombinemorphvolumes(
    h1=ent.Morphvolume(model, 21), h2=ent.Morphvolume(model, 22), hand=1, tangent=1
)

Note

Newly combined morph volumes can optionally have handles and tangency automatically applied.