Model.hm_morph_getnodehandle#

Model.hm_morph_getnodehandle(node)#

Returns the handle ID for the specified node if a handle exists at that node.

Parameters:

node (Entity) – The object describing the node entity to query.

Returns:

Example#

Get the handle ID for a node with ID 2#
import hm
import hm.entities as ent

model = hm.Model()

_,result = model.hm_morph_getnodehandle(node=ent.Node(model, 2))

print("handle",result.handle)