Houses the MetaClass able to setup new types to work within the system. This can be considered the heart of the node wrapping engine, but it plays together with the implementation in the base module.
Add a custom type to the system such that a node with the given type will automatically be wrapped with the corresponding class name
Parameters: |
|
---|---|
Raises KeyError: | |
if the parentclsname does not exist |
As _addCustomType, but allows to enter the type relations using a mrv.util.DAGTree instead of individual names. Thus multiple edges can be added at once
Note: | special care is being taken to make force_creation work - first all the standind classes are needed, then we can create them - just iterating the nodes in undefined order will not work as a parent node might not be created yet |
---|---|
Note: | node names in dagtree must be uncapitalized |
Remove the given typename from the given target module’s dictionary as well as from internal caches
Note: | does nothing if the type does not exist |
---|---|
Parameters: |
|
Returns: | s with first letter capitalized |
---|
Create Standin Classes that will delay the creation of the actual class till the first instance is requested
Parameter: | targetmoduledict – the module’s dictionary (globals()) to which to put the wrappers |
---|
Fetch and install all mfn methods on all types supporting a function set. This should only be done to help interactive mode, but makes absolutely no sense in the default mode of operation when everything is produced on demand.
Note: | Attaches docstrings as well |
---|---|
Returns: | integer representing the number of generated methods |
Returns: | s with first letter lower case |
---|---|
Parameter: | preserveAcronymns – enabled ensures that ‘NTSC’ does not become ‘nTSC’ |
Note: | from pymel |
Bases: tuple
Simple enumeration class which allows access to its enumeration using getattr access. As it is a tuple as well, one can access the enumeration values in the right sequencial order
Returns: | new instance of this type as initialized from the EnumDescriptor ed and the mfncls |
---|
Returns: | name string with the given integer value |
---|---|
Parameter: | value – integer value of this enumeration |
Raises ValueError: | |
if value is not in the enumeration |
Bases: type
Builds the base hierarchy for the given classname based on our typetree
Epydoc: mrv.maya.nt.typ.MetaClassCreatorNodes
Bases: mrv.maya.util.MetaClassCreator
Builds the base hierarchy for the given classname based on our typetree :todo: build classes with slots only as members are pretermined
Bases: object
instancemethod(function, instance, class)
Create an instance method object.