rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Public Member Functions | |
def | __init__ |
def | ui_create |
def | ui_update |
def | setup |
def | create |
def | update |
def | conditional_visibility |
def | add_param_popup_menu |
def | create_navigation_popup |
def | update_navigation_popup |
def | __str__ |
Static Public Member Functions | |
def | build_navigation_popup_menu |
Public Attributes | |
nattr | |
label | |
ctl | |
widget | |
desc | |
param | |
uiprefix | |
ui_func | |
ui_has_builtin_connector | |
mayaFunc | |
mayaSubControl | |
Static Public Attributes | |
list | indexTwoTypes = [kk.W_POPUP, kk.W_MAPPER, kk.W_BOOLEAN, kk.W_CHECKBOX] |
Base class for all widgets. This will handle the classic create/update cycle of maya controls, as well as provide a base implementation for widgets attached to simple scalar attributes.
def rfm2.ui.common.BaseWidget.__init__ | ( | self | ) |
def rfm2.ui.common.BaseWidget.__str__ | ( | self | ) |
def rfm2.ui.common.BaseWidget.add_param_popup_menu | ( | self | ) |
Attach a popupMenu to the parameter widget to revert to the default value, apply presets, etc. This is menu will be triggered by: - OSX: shift-RMB - Win: shift-RMB - Linux: shift-RMB
|
static |
def rfm2.ui.common.BaseWidget.conditional_visibility | ( | self, | |
returnFunc = False |
|||
) |
Evaluate conditional visibility and attach a callback to trigger a refresh if need be.
def rfm2.ui.common.BaseWidget.create | ( | self, | |
ctlname, | |||
nodeattr, | |||
param, | |||
idx = None , |
|||
dyn = False , |
|||
struct_name = None , |
|||
struct_idx = None |
|||
) |
A generic implementation of the widget creation phase. Inherited by all widget types.
def rfm2.ui.common.BaseWidget.create_navigation_popup | ( | self, | |
ctl | |||
) |
def rfm2.ui.common.BaseWidget.setup | ( | self, | |
desc, | |||
param, | |||
uiprefix | |||
) |
initial setup phase called before the create/update cycle.
def rfm2.ui.common.BaseWidget.ui_create | ( | self | ) |
Create the widget compatible with your data types.
def rfm2.ui.common.BaseWidget.ui_update | ( | self | ) |
Connect the widget previously created to a specific attribute. We also handle conditional visibility here.
def rfm2.ui.common.BaseWidget.update | ( | self, | |
ctlname, | |||
nodeattr, | |||
idx = None , |
|||
label = None , |
|||
dyn = 0 , |
|||
struct_name = None , |
|||
struct_idx = None |
|||
) |
A generic implementation of the widget updating phase. Inherited by all widget types.
def rfm2.ui.common.BaseWidget.update_navigation_popup | ( | self, | |
ctl, | |||
func | |||
) |
rfm2.ui.common.BaseWidget.ctl |
rfm2.ui.common.BaseWidget.desc |
|
static |
rfm2.ui.common.BaseWidget.label |
rfm2.ui.common.BaseWidget.mayaFunc |
rfm2.ui.common.BaseWidget.mayaSubControl |
rfm2.ui.common.BaseWidget.nattr |
rfm2.ui.common.BaseWidget.param |
rfm2.ui.common.BaseWidget.ui_func |
rfm2.ui.common.BaseWidget.ui_has_builtin_connector |
rfm2.ui.common.BaseWidget.uiprefix |
rfm2.ui.common.BaseWidget.widget |