rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Functions | |
def | valid_clipboard (ntype) |
def | multi_edit (node_list, ntype, attr, value, *_) |
def | copy_settings (node, *_, **kwargs) |
def | paste_settings (node_list, cat, refresh_func, *_, **kwargs) |
Implement multi-node edits like copy and paste settings.
def rfm2.utils.multi_edits.copy_settings | ( | node, | |
* | _, | ||
** | kwargs | ||
) |
Copy settings of the selected node into a clipboard. Arguments: node {str} -- the maya node's name
def rfm2.utils.multi_edits.multi_edit | ( | node_list, | |
ntype, | |||
attr, | |||
value, | |||
* | _ | ||
) |
set one attribute to the same value on multiple nodes. NOTE: only implemented for simple scalar types. Arguments: node_list {list} -- list of maya nodes ntype {str} -- node type of the selected node attr {str} -- maya attr name value {any} -- the attr value
def rfm2.utils.multi_edits.paste_settings | ( | node_list, | |
cat, | |||
refresh_func, | |||
* | _, | ||
** | kwargs | ||
) |
copy clipboard settings on node list. Arguments: node_list {list} -- list of maya nodes cat {str} -- page name or 'all' to copy only a sub-section of params. Keyword Arguments: refresh_func {closure} -- an optional function executed to trigger a refresh event.
def rfm2.utils.multi_edits.valid_clipboard | ( | ntype | ) |
Check if the clipboard hold data compatible with the node type of the selected node. Arguments: ntype {str} -- Maya node type Returns: bool -- True if compatible