Model.hm_getentitytypealiasname#

Model.hm_getentitytypealiasname(entity_type)#

Returns the alias name for a specified entity type in the current user profile.

Parameters:

entity_type (EntityFullType) – The entity type to query.

Returns:

Example#

Get the alias name for components#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getentitytypealiasname(entity_type=ent.Component)

print("Alias Name:", result.alias)  #  Alias Name:COMPONENT