Model.hm_getcurrentframe#
- Model.hm_getcurrentframe()#
Returns the current animation frame.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:currentFrame (int)
Example#
Get the current animation frame#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getcurrentframe() anim_frame = result.currentFrame print("Current Animation Frame:", anim_frame)