4.18 mayaascii -- Reading Maya ASCII files

This module contains the MAReader class which can be used as a base class for reading Maya ASCII (*.ma) files. The class reads the file and invokes callback methods with the corresponding data in the file. Derived classes have to implement those callback methods and process the data as appropriate.

The module also contains a couple of helper classes that may be used by a derived reader class to facilitate the processing of the data.

splitDAGPath( path)
Split a Maya DAG path into its components. The path is given as a string that may have the form <namespace>:<path> where <path> is a sequence of strings separated by '|'. The return value is a 2-tuple (namespace, names) where namespace is None if the path did not contain a ':' character. names is a list of individual path names.

stripQuotes( s)
Remove surrounding quotes if there are any. The function returns the string s without surrounding quotes (i.e. "foo" -> foo). If there are no quotes the string is returned unchanged.



Subsections