Model.hm_attributeindexsolver#

Model.hm_attributeindexsolver(entity_type, entity_id, attribute_index)#

Returns the solver number of an indexed attribute on an entity.

Parameters:
  • entity_type (EntityFullType) – The type of entity to query.

  • entity_id (unsigned int) – The ID of the entity.

  • attribute_index (int) – The index of the attribute owned by the queried entity (starting at 1).

Returns:

Example#

Get the attribute solver number of the attribute with index 3 on material with ID 6#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_attributeindexsolver_byentityname(
    entity_type=ent.Material, entity_id=6, attribute_index=3
)

print("solverNumber", result.solverNumber)