rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Classes | |
class | Highlighter |
class | PathHighlighter |
class | LpeHighlighter |
class | ExpressionPreviewButton |
class | TextField |
Functions | |
def | unique_ctl_name (name, func) |
def | sanitize_ptr_table () |
def | unique_obj_name (name) |
def | rfm_text_field (name, **kwargs) |
def | test () |
Variables | |
dictionary | PTR_TABLE = {} |
BACKGROUND_COLOR = qtg.QColor(43, 43, 43) | |
BLUE = qtg.QColor(41, 172, 255) | |
ORANGE = qtg.QColor(252, 151, 31) | |
GREEN = qtg.QColor(167, 226, 46) | |
YELLOW = qtg.QColor(230, 219, 116) | |
RED = qtg.QColor(245, 245, 41) | |
PURPLE = qtg.QColor(182, 126, 255) | |
GREY = qtg.QColor(128, 128, 128) | |
list | IGNORED_KEY_EVENTS = [qtc.Qt.Key_Return, qtc.Qt.Key_Enter] |
int | FIELD_HEIGHT = 22 |
LPE_TOKENS = OrderedDict() | |
list | FOCUS_STEALERS |
string | kStringExprSample1 = '<ws>/images/<scene>/<scene>__<renderlayer>_<camera>.<f4>.exr' |
string | kStringExprSample2 = '/Users/plp/file.<udim>.tex' |
tuple | kStringExprSample3 |
A Qt text field widget with syntax highlighting.
def rfm2.ui.text_field.rfm_text_field | ( | name, | |
** | kwargs | ||
) |
Mimic a classic maya command interface for our scriptEditor widget.
def rfm2.ui.text_field.sanitize_ptr_table | ( | ) |
Remove dead objects from PTR_TABLE. Maya only holds the Qt objects, so we need to delete our instances if their Qt object has been garbage-collected without our knowledge. Just test the Qt object to check its validity.
def rfm2.ui.text_field.test | ( | ) |
Basic test harness
def rfm2.ui.text_field.unique_ctl_name | ( | name, | |
func | |||
) |
Return a unique maya control name. Arguments: name {str} -- candidate object name func {maya func} -- func to be queried for the control's existence. Returns: str -- unique control name
def rfm2.ui.text_field.unique_obj_name | ( | name | ) |
Find the next unique name by incrementing a suffix. Arguments: name {str} -- candidate name Returns: str -- unique name
rfm2.ui.text_field.BACKGROUND_COLOR = qtg.QColor(43, 43, 43) |
rfm2.ui.text_field.BLUE = qtg.QColor(41, 172, 255) |
int rfm2.ui.text_field.FIELD_HEIGHT = 22 |
list rfm2.ui.text_field.FOCUS_STEALERS |
rfm2.ui.text_field.GREEN = qtg.QColor(167, 226, 46) |
rfm2.ui.text_field.GREY = qtg.QColor(128, 128, 128) |
list rfm2.ui.text_field.IGNORED_KEY_EVENTS = [qtc.Qt.Key_Return, qtc.Qt.Key_Enter] |
string rfm2.ui.text_field.kStringExprSample1 = '<ws>/images/<scene>/<scene>__<renderlayer>_<camera>.<f4>.exr' |
string rfm2.ui.text_field.kStringExprSample2 = '/Users/plp/file.<udim>.tex' |
tuple rfm2.ui.text_field.kStringExprSample3 |
rfm2.ui.text_field.LPE_TOKENS = OrderedDict() |
rfm2.ui.text_field.ORANGE = qtg.QColor(252, 151, 31) |
dictionary rfm2.ui.text_field.PTR_TABLE = {} |
rfm2.ui.text_field.PURPLE = qtg.QColor(182, 126, 255) |
rfm2.ui.text_field.RED = qtg.QColor(245, 245, 41) |
rfm2.ui.text_field.YELLOW = qtg.QColor(230, 219, 116) |