Hey all,
I have a custom package to load file LUTs and with a menu item can toggle their "lut.active" state. It works great when I have one source.
When I I have multiple sources loaded, and a LUT per source, I can't get the menu to properly show the state of the current source, based on position in the timeline. It shows the state of the last source that had the LUT changed, which I'm storing in a variable.
Is there a way to dynamically set a menu item based on a node property query? Using a stateHook that calls something like:
def LUTstate(self):
if commands.getIntProperty("#RVLinearize.lut.active"):
return commands.CheckedMenuState
else:
return commands.UncheckedMenuState
thanks,
Rick