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:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:handle (Entity) - Entity Type:
Handle
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)