Package nukescripts :: Module renderdialog :: Class DialogState
[hide private]
[frames] | no frames]

Class DialogState

source code

Instance Methods [hide private]
 
__init__(self) source code
 
get(self, knob, defaultValue=None)
Return the given knob's stored last state value.
source code
 
save(self, knob)
Store the knob's current value as the 'last state' for the next time the dialog is opened.
source code
 
setKnob(self, knob, defaultValue=None)
Convenience method for setting a value straight on a knob.
source code
 
saveValue(self, id, value)
Stores the value with the given id.
source code
 
getValue(self, id, defaultValue=None)
Recalls the value.
source code
Method Details [hide private]

get(self, knob, defaultValue=None)

source code 

Return the given knob's stored last state value. If none exists, defaultValue is returned. Values are stored in a dict referenced by knob name, so names must be unique!

save(self, knob)

source code 

Store the knob's current value as the 'last state' for the next time the dialog is opened. Values are stored in a dict referenced by knob name, so names must be unique!

getValue(self, id, defaultValue=None)

source code 

Recalls the value. If it was not set before, it will return the defaultValue.