rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.utils.abc_support Namespace Reference

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 = ''
 

Detailed Description

Alembic-related utilities.

Function Documentation

◆ display_manifest()

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:

◆ export()

def rfm2.utils.abc_support.export (   forGPUCache,
  selected 
)
+ Here is the call graph for this function:

◆ get_stored_manifest()

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:

◆ import_cache()

def rfm2.utils.abc_support.import_cache ( )

◆ postExport()

def rfm2.utils.abc_support.postExport (   callbacks,
  attrlist 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ preExport()

def rfm2.utils.abc_support.preExport (   selected = False)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_path()

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:

◆ read_manifest()

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:

◆ setupExport()

def rfm2.utils.abc_support.setupExport (   forGPUCache)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ show_annotations_changed()

def rfm2.utils.abc_support.show_annotations_changed (   node,
  tree,
  state 
)

◆ solo()

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

◆ visit_object()

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:

◆ visit_properties()

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

◆ FACEID_ATTR

string rfm2.utils.abc_support.FACEID_ATTR = 'rman_emitFaceIDs'

◆ FORMVALIDOBJECTNAME_MEL_FILE

string rfm2.utils.abc_support.FORMVALIDOBJECTNAME_MEL_FILE = ''

◆ MAYA_FACEVARINTERP

string rfm2.utils.abc_support.MAYA_FACEVARINTERP = 'faceVaryingInterpolateBoundary'

◆ MAYA_INTERPBOUNDARY

string rfm2.utils.abc_support.MAYA_INTERPBOUNDARY = 'interpolateBoundary'

◆ MAYA_SUBDIV

string rfm2.utils.abc_support.MAYA_SUBDIV = 'SubDivisionMesh'

◆ PROPS

string rfm2.utils.abc_support.PROPS = u'''<p style="line-height:80%%"><pre><u>Properties</u><br>%s</pre></p>'''

◆ RFM_FACEVARYINGINTERP

string rfm2.utils.abc_support.RFM_FACEVARYINGINTERP = 'rman_subdivFacevaryingInterp'

◆ RFM_SUBDIVSCHEME

string rfm2.utils.abc_support.RFM_SUBDIVSCHEME = 'rman_subdivScheme'

◆ RMAN_PREFIX

list rfm2.utils.abc_support.RMAN_PREFIX = ['rman_', '__']

◆ SUB

list rfm2.utils.abc_support.SUB = [u'\u251C', u'\u2514']