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

Classes

class  CtlTable
 
class  ImageSwatch
 

Functions

def time_this
 
def imageSwatch
 
def test
 

Variables

 __CTL_TABLE__ = None
 

Function Documentation

def rfm2.ui.image_swatch.imageSwatch (   name,
  kwargs 
)
Pseudo maya command to create our imageSwatch control.

Args:
- name (str): Name of the control (mandatory)

Kwargs:
- e/edit (bool):    set command to 'edit' mode. (default to 'create' mode.)
- img (str):        image (name or path) to be loaded. (edit)
- parent (str):     maya parent the control should be attached to. (create)
- default (str):    a default image to be used. (create)
- nattr (str):      a node.attr plug containing the image name/path. (edit)

Returns:
- full path name of the new control on creation, otherwise None.

+ Here is the caller graph for this function:

def rfm2.ui.image_swatch.test ( )
Basic test harness

+ Here is the call graph for this function:

def rfm2.ui.image_swatch.time_this (   f)
Function that can be used as a decorator to time any method.

Variable Documentation

tuple rfm2.ui.image_swatch.__CTL_TABLE__ = None