rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Classes | |
class | NodeDescError |
class | NodeDescIgnore |
class | DescFormat |
class | DescPropType |
class | DescNodeType |
class | NodeDescParam |
class | NodeDescParamXML |
class | NodeDescParamOSL |
class | NodeDescParamJSON |
class | NodeDesc |
Functions | |
def | safe_value_eval |
def | validate_type |
def | startup_info |
def | vis_ops_func |
def | save_ref |
Variables | |
list | VALID_TYPES |
list | FLOAT3 = ['color', 'point', 'vector', 'normal'] |
dictionary | DATA_TYPE_WIDTH |
list | OPTIONAL_ATTRS |
dictionary | INTERP_MAYA |
dictionary | INTERP_RMAN_TO_MAYA |
dictionary | COND_VIS_OP |
dictionary | DEFAULT_VALUE |
tuple | CFLOAT_REGEXP = re.compile(r'[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?f') |
string | PAGE_SEP = '|' |
list | PYTYPES = ['int', 'float'] |
dictionary | OSL_TO_RIS_TYPES |
Classes to parse and store node descriptions.
def rfm2.utils.node_desc.safe_value_eval | ( | raw_val | ) |
def rfm2.utils.node_desc.save_ref | ( | idx_list, | |
save = True |
|||
) |
Takes a number of test files, load them and serialize our representation to disk for later comparison in unit tests. Args: idx_list (list): list of file indices save (bool, optional): Save the file or not. used for debugging.
def rfm2.utils.node_desc.startup_info | ( | ) |
Returns a Windows-only object to make sure tasks launched through subprocess don't open a cmd window. NOTE: this will be moved to another module later. Returns: subprocess.STARTUPINFO -- the properly configured object if we are on Windows, otherwise None
def rfm2.utils.node_desc.validate_type | ( | pname, | |
ptype | |||
) |
def rfm2.utils.node_desc.vis_ops_func | ( | ops, | |
trigger_params | |||
) |
Limited (non-recursive) implementation of conditional visibility parsing for katana-style hintdict. Args: - ops (dict): the conditional visibility arguments. - trigger_params (list): a list to be filled with param names used by conditional expressions FIXME: regex keyword not implemented.
tuple rfm2.utils.node_desc.CFLOAT_REGEXP = re.compile(r'[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?f') |
dictionary rfm2.utils.node_desc.COND_VIS_OP |
dictionary rfm2.utils.node_desc.DATA_TYPE_WIDTH |
dictionary rfm2.utils.node_desc.DEFAULT_VALUE |
list rfm2.utils.node_desc.FLOAT3 = ['color', 'point', 'vector', 'normal'] |
dictionary rfm2.utils.node_desc.INTERP_MAYA |
dictionary rfm2.utils.node_desc.INTERP_RMAN_TO_MAYA |
list rfm2.utils.node_desc.OPTIONAL_ATTRS |
dictionary rfm2.utils.node_desc.OSL_TO_RIS_TYPES |
string rfm2.utils.node_desc.PAGE_SEP = '|' |
list rfm2.utils.node_desc.PYTYPES = ['int', 'float'] |
list rfm2.utils.node_desc.VALID_TYPES |