rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.utils.multi_edits Namespace Reference

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)
 

Detailed Description

Implement multi-node edits like copy and paste settings.

Function Documentation

◆ copy_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
+ Here is the call graph for this function:

◆ multi_edit()

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
+ Here is the call graph for this function:

◆ paste_settings()

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.
+ Here is the call graph for this function:

◆ valid_clipboard()

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
+ Here is the caller graph for this function: