Model.morphhandleupdatemulti#

Model.morphhandleupdatemulti(collectionhandle, dcollectionhandle)#

Updates dependencies for handles on the collection.

Parameters:
  • collectionhandle (Collection) – The collection containing the handle entities to update their dependencies.

  • dcollectionhandle (Collection) – The collection containing the dependent handle entities.

Example#

Update handles on the first collection to be dependent on the handles on the second collection#
import hm
import hm.entities as ent

model = hm.Model()

model.morphhandleupdatemulti(
    collectionhandle=hm.CollectionByInteractiveSelection(model, ent.Handle),
    dcollectionhandle=hm.CollectionByInteractiveSelection(model, ent.Handle),
)