Model.hm_morph_getinfo_undolist#
- Model.hm_morph_getinfo_undolist(option)#
Returns the undo/redo list.
- Parameters:
option (hwString) –
Valid values are:
current - Returns the current position in the undo/redo list
maximum - Returns the length of the undo/redo list.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:outputValue (int)
Examples#
Get the current possition in the undo / redo list#import hm import hm.entities as ent model = hm.Model() _,result = model.hm_morph_getinfo_undolist(option="current") print("outputValue",result.outputValue)
Get the length of the undo / redo list#import hm import hm.entities as ent model = hm.Model() _,result = model.hm_morph_getinfo_undolist(option="maximum") print("outputValue",result.outputValue)