paya.pools#
- class ClassPoolBrowser(pool)#
Browsing wrapper for a class pool instance. Classes can be retrieved using dotted or keyed syntax.
- class ClassPool#
Abstract base class for collections of custom Paya classes.
- browse()#
- Returns
A browser object for this pool.
- Return type
- purge(quiet=False)#
Purges cached information.
- readClass(clsname)#
Locates, sources and returns a class by name. No rebuilding or cache management is performed.
- class RebuiltClassPool#
Inheritance
- getMeta(clsname)#
- inventBasesDict(clsname)#
- Parameters
clsname – the name of the class being retrieved
- Raises
NotImplementedError – Invention is not implemented for this pool.
- Returns
Bases and a dict that can be used to construct a stand-in class in the absence of a template.
- Return type
- conformBases(clsname, bases)#
Given a tuple of bases, returns a modified, where necessary, version that can be used to construct a final class.
- conformDict(clsname, dct)#
Given a class dictionary, returns a modified, where necessary, version that can be used to construct a final class.
- buildClass(clsname)#
Builds a final class. If a template is available, it is used. Otherwise, if this pool implements invention, the class is invented. If this pool doesn’t implement invention, an exception is raised.
- class ShadowPool#
Inheritance
Abstract base class for pools that directly shadow PyMEL namesakes.
- getFromPyMELInstance(inst)#
Given a PyMEL instance, returns an appropriate Paya class for reassignment.
- inventBasesDict(clsname)#
- Parameters
clsname – the name of the class being retrieved
- Raises
NotImplementedError – Invention is not implemented for this pool.
- Returns
Bases and a dict that can be used to construct a stand-in class in the absence of a template.
- Return type
- conformDict(clsname, dct)#
Given a class dictionary, returns a modified, where necessary, version that can be used to construct a final class.
- conformBases(clsname, bases)#
Given a tuple of bases, returns a modified, where necessary, version that can be used to construct a final class.
- getMeta(clsname)#
- class NodeClassPool#
Inheritance
ShadowPool
RebuiltClassPool
ClassPool
Administers custom Paya classes for nodes. A browser for this pool can be accessed on
paya.runtime
as.nodes
.- conformDict(clsname, dct)#
Given a class dictionary, returns a modified, where necessary, version that can be used to construct a final class.
- class CompClassPool#
Inheritance
ShadowPool
RebuiltClassPool
ClassPool
Administers custom Paya classes for components. A browser for this pool can be accessed on
paya.runtime
as.comps
.
- class PlugClassPool#
Inheritance
ShadowPool
RebuiltClassPool
ClassPool
Administers custom Paya classes for plugs (attributes). Relies on
pluginfo
. A browser for this pool can be accessed onpaya.runtime
as.plugs
.- getFromPyMELInstance(inst)#
Given a PyMEL instance, returns an appropriate Paya class for reassignment.
- getByName(clsname)#
Retrieves a class by name. Lookups are cached.
- getPmBase(clsname)#
- conformBases(clsname, bases)#
Given a tuple of bases, returns a modified, where necessary, version that can be used to construct a final class.
- getRootDataClasses()#
- Returns
Terminating classes detected from
pymel.core.datatypes
.
- class DataClassPool#
Inheritance
ShadowPool
RebuiltClassPool
ClassPool
Administers custom Paya classes for data types (e.g. vectors). An instance of this pool can be accessed on
paya.runtime
as.data
.
- class ParsedNodeSubtypePoolMeta(clsname, bases, dct)#
Inheritance
type
- class ParsedNodeSubtypePool#
Inheritance
NodeClassPool
ShadowPool
RebuiltClassPool
ClassPool
- inventBasesDict(clsname)#
- Raises
NotImplementedError – Not supported on parsed-subtype pools.
- getCrossPoolRoot()#
- Returns
A class from a ‘base’ class pool, to be used as the basis for all classes returned by this one.
- Return type
- attrName()#
- Returns
The name of the string node attribute that will be inspected for the type name.
- Return type
- buildClass(clsname)#
Builds a final class. If a template is available, it is used. Otherwise, if this pool implements invention, the class is invented. If this pool doesn’t implement invention, an exception is raised.
- conformDict(clsname, dct)#
Given a class dictionary, returns a modified, where necessary, version that can be used to construct a final class.
- conformBases(clsname, bases)#
Given a tuple of bases, returns a modified, where necessary, version that can be used to construct a final class.
- class ParsedNetworkSubtypePool#
Inheritance
ParsedNodeSubtypePool
NodeClassPool
ShadowPool
RebuiltClassPool
ClassPool
Administers subtypes for ‘network’ nodes.