rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Functions | |
def | visit_properties (iParent, depth, compound=None) |
def | visit_object (iObj, depth, parent, items) |
def | print_path (ctl) |
def | read_manifest (*args) |
def | get_stored_manifest (node) |
def | solo (node, abc_path, _) |
def | show_annotations_changed (node, tree, state) |
def | display_manifest (*args) |
def | preExport (selected=False) |
def | postExport (callbacks, attrlist) |
def | setupExport (forGPUCache) |
def | export (forGPUCache, selected) |
def | import_cache () |
Variables | |
list | SUB = [u'\u251C', u'\u2514'] |
string | PROPS = u'''<p style="line-height:80%%"><pre><u>Properties</u><br>%s</pre></p>''' |
string | RFM_SUBDIVSCHEME = 'rman_subdivScheme' |
string | RFM_FACEVARYINGINTERP = 'rman_subdivFacevaryingInterp' |
string | MAYA_SUBDIV = 'SubDivisionMesh' |
string | MAYA_INTERPBOUNDARY = 'interpolateBoundary' |
string | MAYA_FACEVARINTERP = 'faceVaryingInterpolateBoundary' |
list | RMAN_PREFIX = ['rman_', '__'] |
string | FACEID_ATTR = 'rman_emitFaceIDs' |
string | FORMVALIDOBJECTNAME_MEL_FILE = '' |
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.import_cache | ( | ) |
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.show_annotations_changed | ( | node, | |
tree, | |||
state | |||
) |
def rfm2.utils.abc_support.solo | ( | node, | |
abc_path, | |||
_ | |||
) |
Solo/un-solo the selected alembic path on node. Arguments: node {str} -- the gpuCache node abc_path {str} -- the alembic geometry path
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.
string rfm2.utils.abc_support.FACEID_ATTR = 'rman_emitFaceIDs' |
string rfm2.utils.abc_support.FORMVALIDOBJECTNAME_MEL_FILE = '' |
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'''<p style="line-height:80%%"><pre><u>Properties</u><br>%s</pre></p>''' |
string rfm2.utils.abc_support.RFM_FACEVARYINGINTERP = 'rman_subdivFacevaryingInterp' |
string rfm2.utils.abc_support.RFM_SUBDIVSCHEME = 'rman_subdivScheme' |
list rfm2.utils.abc_support.RMAN_PREFIX = ['rman_', '__'] |
list rfm2.utils.abc_support.SUB = [u'\u251C', u'\u2514'] |