Model.pushtofront#

Model.pushtofront(entity_type, mode)#

Sets a visualization mode to keep certain entities visible in front of others.

Parameters:
  • entity_type (EntityFullType) – The type of entity to control. Valid values are tags.

  • mode (int) –

    0 - Do not push to front.

    1 - Push to front (keep in front of other entities at all times).

Example#

Keep tags in front#
import hm
import hm.entities as ent

model = hm.Model()

model.pushtofront(entity_type=ent.Tag, mode=1)