rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Functions | |
def | visit_properties |
def | visit_object |
def | print_path |
def | read_manifest |
def | get_stored_manifest |
def | display_manifest |
def | preExport |
def | postExport |
def | setupExport |
def | export |
Variables | |
list | SUB = [u'\u251C', u'\u2514'] |
string | PROPS = u'' |
string | RFM_SUBDIVSCHEME = 'rman_subdivScheme' |
string | RFM_FACEVARYINGINTERP = 'rman_subdivFacevaryingInterp' |
string | MAYA_SUBDIV = 'SubDivisionMesh' |
string | MAYA_INTERPBOUNDARY = 'interpolateBoundary' |
string | MAYA_FACEVARINTERP = 'faceVaryingInterpolateBoundary' |
string | TORATTR_PREFIX = 'rman__torattr' |
string | RIATTR_PREFIX = 'rman__riattr' |
string | FACEID_ATTR = 'rman_emitFaceIDs' |
__cache__ = None | |
__cached_node__ = None | |
__dbg__ = False | |
Alembic-related utilities.
def rfm2.utils.abc_support.display_manifest | ( | args | ) |
Display the contents of an alembic archive (stored in a string attribute) in a treeView control. Args: - node (str): the maya node name. - control (str): the name of the treeView control.
def rfm2.utils.abc_support.export | ( | forGPUCache, | |
selected | |||
) |
def rfm2.utils.abc_support.get_stored_manifest | ( | node | ) |
Return the manifest array stored on the node. If empty, return an empty array.
def rfm2.utils.abc_support.postExport | ( | callbacks, | |
attrlist | |||
) |
def rfm2.utils.abc_support.preExport | ( | selected = False | ) |
def rfm2.utils.abc_support.print_path | ( | ctl | ) |
Print the item's full path. This is useful to copy/paste a long path. Args: - ctl (mc.treeView): A maya treeView control.
def rfm2.utils.abc_support.read_manifest | ( | args | ) |
Read the contents of the alembic archive attched to a gpuCache node and stores it on the node for later retrieval. Args: - node (str): the maya node name. - control (str): the name of the treeView control.
def rfm2.utils.abc_support.setupExport | ( | forGPUCache | ) |
def rfm2.utils.abc_support.visit_object | ( | iObj, | |
depth, | |||
parent, | |||
items | |||
) |
Recursively visit each IObject in an alembic archive. Args: - iObj (IObject): The node we are starting from. - depth (int): The current hierarchical depth. - parent (str): The parent of iObj. - items (list): The list in which we store parsed data.
def rfm2.utils.abc_support.visit_properties | ( | iParent, | |
depth, | |||
compound = None |
|||
) |
Look up an IObject node's properties. NOTE: currently un-used but could be used to get visibility state, etc. Args: - iParent (alembic.Abc.IObject): The node - depth (int): The depth of the node in the hierarchy.
rfm2.utils.abc_support.__cache__ = None |
rfm2.utils.abc_support.__cached_node__ = None |
rfm2.utils.abc_support.__dbg__ = False |
string rfm2.utils.abc_support.FACEID_ATTR = 'rman_emitFaceIDs' |
string rfm2.utils.abc_support.MAYA_FACEVARINTERP = 'faceVaryingInterpolateBoundary' |
string rfm2.utils.abc_support.MAYA_INTERPBOUNDARY = 'interpolateBoundary' |
string rfm2.utils.abc_support.MAYA_SUBDIV = 'SubDivisionMesh' |
string rfm2.utils.abc_support.PROPS = u'' |
string rfm2.utils.abc_support.RFM_FACEVARYINGINTERP = 'rman_subdivFacevaryingInterp' |
string rfm2.utils.abc_support.RFM_SUBDIVSCHEME = 'rman_subdivScheme' |
string rfm2.utils.abc_support.RIATTR_PREFIX = 'rman__riattr' |
list rfm2.utils.abc_support.SUB = [u'\u251C', u'\u2514'] |
string rfm2.utils.abc_support.TORATTR_PREFIX = 'rman__torattr' |