Model.hm_posteeforentity#

Model.hm_posteeforentity(entity, title='Entity Editor', modal=0)#

Posts a pop-up for a selected entity.

Parameters:
  • entity (Entity) – The object describing the entity to post the editor for.

  • title (hwString) – Specifies the title of the dialog. The default title is Entity Editor.

  • modal (int) –

    Specifies whether the dialog is modal. Valid values are:

    0 - Not modal.

    1 - Modal.

Returns:

Example#

Display an Entity Editor for the component with ID 2#
import hm
import hm.entities as ent

model = hm.Model()

model.hm_posteeforentity(entity=ent.Component(model,2))