rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.ui.user_attrs Namespace Reference

Classes

class  UserAttrWidget
 

Functions

def user_attrs_add
 
def user_attrs_del
 
def user_attrs
 

Variables

list LIMITED_TYPES = ['float', 'int']
 
list WIDGETS_WITH_OPTIONS = [kk.W_MAPPER, kk.W_FILEINPUT, kk.W_POPUP]
 

Detailed Description

Create a user attribute section in the AE.

Function Documentation

def rfm2.ui.user_attrs.user_attrs (   node)
Return a list of user attributes for a given node. User

Args:
- node (str): The node to be considered.

+ Here is the caller graph for this function:

def rfm2.ui.user_attrs.user_attrs_add (   data_attr,
  nodelist,
  pdict 
)
Create a constant user attribute on every node of the ndoe list. The
attribute is parameterized by pdict. Each node has a metadata string
attribute that will be updated with the new param description.

Args:
- data_attr (str): name of the metadata attribute
- nodelist (list): list of maya nodes
- pdict (dict): param dict used to init a NodeDescParamJSON object.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.ui.user_attrs.user_attrs_del (   data_attr,
  nodelist,
  attrlist 
)
Delete one or more user attributes on one or more nodes and updates the
metadata stored in data_attr.

Args:
- data_attr (str): name of the metadata attribute
- nodelist (list): list of maya nodes
- attrlist (list): list of attributes to delete

+ Here is the caller graph for this function:

Variable Documentation

list rfm2.ui.user_attrs.LIMITED_TYPES = ['float', 'int']
list rfm2.ui.user_attrs.WIDGETS_WITH_OPTIONS = [kk.W_MAPPER, kk.W_FILEINPUT, kk.W_POPUP]