rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Public Member Functions | |
def | __init__ (self) |
def | ui_create (self) |
def | ui_update (self) |
def | editor_show (self, add_state, del_state) |
def | editor_update (self, suffix) |
def | create_attr (self, *_) |
def | delete_attrs (self, *args) |
Public Member Functions inherited from rfm2.ui.base_widget.BaseWidget | |
def | setup (self, desc, param, uiprefix) |
def | create (self, ctlname, nodeattr, param, idx=None, dyn=False, struct_name=None, struct_idx=None) |
def | update (self, ctlname, nodeattr, idx=None, label=None, dyn=0, struct_name=None, struct_idx=None) |
def | conditional_visibility (self, return_func=False) |
def | add_param_popup_menu (self) |
def | create_navigation_popup (self, ctl) |
def | update_navigation_popup (self, ctl, func) |
def | __str__ (self) |
Static Public Member Functions | |
def | refresh_available_widgets (editor, *args) |
def | refresh_widgets_options (editor, *args) |
Static Public Member Functions inherited from rfm2.ui.base_widget.BaseWidget | |
def | build_navigation_popup_menu (*args, **kwargs) |
Public Attributes | |
jdata | |
maya_func | |
ui_has_builtin_connector | |
Public Attributes inherited from rfm2.ui.base_widget.BaseWidget | |
nattr | |
label | |
ctl | |
widget | |
desc | |
param | |
uiprefix | |
ui_func | |
ui_has_builtin_connector | |
maya_func | |
maya_sub_control | |
parent | |
Additional Inherited Members | |
Static Public Attributes inherited from rfm2.ui.base_widget.BaseWidget | |
list | indexTwoTypes = [kk.W_POPUP, kk.W_MAPPER, kk.W_BOOLEAN, kk.W_CHECKBOX] |
Creates a sub layout in which user attributes will appear.
def rfm2.ui.user_attrs.UserAttrWidget.__init__ | ( | self | ) |
Reimplemented from rfm2.ui.base_widget.BaseWidget.
def rfm2.ui.user_attrs.UserAttrWidget.create_attr | ( | self, | |
* | _ | ||
) |
Read input data and calls user_attrs_add(). Args: - Passed by Maya but ignored.
def rfm2.ui.user_attrs.UserAttrWidget.delete_attrs | ( | self, | |
* | args | ||
) |
Get the list of selected attributes from the UI and call user_attrs_del(). Args: - args[0] (str): the textScrollList control name. - args[1] (str): the metadata attr name. Kwargs: - kwarg: keyword_argument. Returns: - return_description Raises: - error_type: error_condition
def rfm2.ui.user_attrs.UserAttrWidget.editor_show | ( | self, | |
add_state, | |||
del_state | |||
) |
Show/Hide the inline editors to add or delete user attributes. Args: - add_state (bool): visibility state of the add editor - del_state (bool): visibility state of the del editor
def rfm2.ui.user_attrs.UserAttrWidget.editor_update | ( | self, | |
suffix | |||
) |
Update one of the inline editors. Args: - suffix (str): appended to the editor to build the control name. Must be 'Add' or 'Del'
|
static |
Update the widget menu to only display type-compatible widgets. Args: - editor (str): basename for all widgets. - args[0] (str): selected type.
|
static |
Update widget options section to only enable widget-compatible fields. Also update text field placeholder text if need be. Args: - editor (str): basename for all widgets. - args[0] (str): selected widget.
def rfm2.ui.user_attrs.UserAttrWidget.ui_create | ( | self | ) |
Create the main layout infrastructure but leaves adding user attributes to ui_update().
Reimplemented from rfm2.ui.base_widget.BaseWidget.
def rfm2.ui.user_attrs.UserAttrWidget.ui_update | ( | self | ) |
Connect the widget previously created to a specific attribute. We also handle conditional visibility here.
Reimplemented from rfm2.ui.base_widget.BaseWidget.
rfm2.ui.user_attrs.UserAttrWidget.jdata |
rfm2.ui.user_attrs.UserAttrWidget.maya_func |
rfm2.ui.user_attrs.UserAttrWidget.ui_has_builtin_connector |