rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.ui.image_swatch Namespace Reference

Classes

class  CtlTable
 
class  ImageSwatch
 

Functions

def time_this (f)
 
def imageSwatch (name, **kwargs)
 
def test ()
 

Variables

 long = int
 

Function Documentation

◆ imageSwatch()

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:

◆ test()

def rfm2.ui.image_swatch.test ( )
Basic test harness
+ Here is the call graph for this function:

◆ time_this()

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

Variable Documentation

◆ long

rfm2.ui.image_swatch.long = int