Model.morphcreatedomainglobalnodes#

Model.morphcreatedomainglobalnodes(ncollection, mode)#

Creates a global domain governing the selected nodes.

Parameters:
  • ncollection (Collection) – The collection containing the node entities that the global domain will be created upon.

  • mode (int) –

    0 - Create domain only

    1 - Create domain and autogenerate global handles

Example#

A new global domain is created governing the selected nodes#
import hm
import hm.entities as ent

model = hm.Model()

model.morphcreatedomainglobalnodes(
    ncollection=hm.CollectionByInteractiveSelection(model, ent.Node), mode=1
)