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

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
 

Detailed Description

Alembic-related utilities.

Function Documentation

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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.utils.abc_support.export (   forGPUCache,
  selected 
)

+ Here is the call graph for this function:

def rfm2.utils.abc_support.get_stored_manifest (   node)
Return the manifest array stored on the node. If empty, return an empty array.

+ Here is the caller graph for this function:

def rfm2.utils.abc_support.postExport (   callbacks,
  attrlist 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.utils.abc_support.preExport (   selected = False)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

def rfm2.utils.abc_support.setupExport (   forGPUCache)

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

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'