Class which handles configuration of nif import and export in
Blender.
Important: keep every instance of this class in a global variable
(otherwise gui elements might go out of skope which will crash
Blender).
|
__init__(self)
Initialize and load configuration. |
source code
|
|
|
run(self,
target,
filename,
callback)
Run the config gui. |
source code
|
|
|
save(self)
Save and validate configuration to Blender registry. |
source code
|
|
|
load(self)
Load the configuration stored in the Blender registry and checks
configuration for incompatible values. |
source code
|
|
|
eventId(self,
event_name)
Return event id from event name, and register event if it is new. |
source code
|
|
|
|
|
|
|
drawSlider(self,
text,
event_name,
min_val,
max_val,
callback,
val=None,
num_items=1,
item=0)
Draw a slider. |
source code
|
|
|
drawLabel(self,
text,
event_name,
num_items=1,
item=0)
Draw a line of text. |
source code
|
|
|
drawList(self,
text,
event_name_prefix,
val)
Create elements to select a list of things. |
source code
|
|
|
drawToggle(self,
text,
event_name,
val=None,
num_items=1,
item=0)
Draw a toggle button. |
source code
|
|
|
drawPushButton(self,
text,
event_name,
num_items=1,
item=0)
Draw a push button. |
source code
|
|
|
drawNumber(self,
text,
event_name,
min_val,
max_val,
callback,
val=None,
num_items=1,
item=0)
Draw an input widget for numbers. |
source code
|
|
|
|
|
drawString(self,
text,
event_name,
max_length,
callback,
val=None,
num_items=1,
item=0)
Create elements to input a string. |
source code
|
|
|
|
|
guiButtonEvent(self,
evt)
Event handler for buttons. |
source code
|
|
|
guiEvent(self,
evt,
val)
Event handler for GUI elements. |
source code
|
|
|
guiExit(self)
Close config GUI and call callback function. |
source code
|
|
|
|
|
updateTexpathCurrent(self)
Update self.texpathCurrent string. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|