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:

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)