Model.morphhandleupdatesingle#

Model.morphhandleupdatesingle(handleptr, dcollectionhandle, xx, yy, zz, sys)#

Updates position and dependencies for specified handle.

Parameters:
  • handleptr (Entity) – The handle entity.

  • dcollectionhandle (Collection) – The collection containing the handle entities to update their position.

  • xx (double) – X coordinate of handle to be created.

  • yy (double) – Y coordinate of handle to be created.

  • zz (double) – Z coordinate of handle to be created.

  • sys (int) –

    System to create handle in.

    0 - Global (default).

Example#

Update specified handle dependencies to the handles on the collection. Specified handle coordinates are updated to the x, y, and z values for the given system#
import hm
import hm.entities as ent

model = hm.Model()

model.morphhandleupdatesingle(
    handleptr=ent.Handle(model, 21),
    dcollectionhandle=hm.CollectionByInteractiveSelection(model, ent.Handle),
    xx=1.0,
    yy=2.0,
    zz=3.0,
    sys=3,
)