All kinds of utility methods and classes that are used in more than one modules
Returns: | s with first letter capitalized |
---|
Create a function calling inFunc with an edit or query flag set.
Note: | THIS CODE HAS BEEN DUPLICATED TO mrv.maya.ui.util ! |
---|---|
Parameters: |
|
Returns: | list instead of None |
---|
Returns: | s with first letter lower case |
---|---|
Parameter: | preserveAcronymns – enabled ensures that ‘NTSC’ does not become ‘nTSC’ |
Note: | from pymel |
Epydoc: mrv.maya.util.CallbackEventBase
Bases: mrv.util.Event
Allows the mapping of MMessage callbacks to mrv’s event sender system. This event will register a new message once the first event receiver registers itself. Once the last event receiver deregisters, the message will be deregistered in maya as well.
Derived types have to implement the _getRegisterFunction
Note: | Its important that you care about deregistering your event to make sure the maya event can be deregistered. Its worth knowing that the eventSender in question is strongly bound to his callback event, so it cannot be deleted while the event is active. |
---|
Bases: object
Sets our instance prior to calling the super class
Note: | must not be called manually |
---|
Epydoc: mrv.maya.util.MEnumeration
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: mrv.util.Singleton
This class is a necessity for calling mel scripts from python. It allows scripts to be called in a cleaner fashion, by automatically formatting python arguments into a string which is executed via maya.mel.eval().
Note: | originated from pymel, added customizations |
---|
Call a mel script , very simpilar to Mel.myscript( args )
Todo: | more docs |
---|
Epydoc: mrv.maya.util.MetaClassCreator
Bases: type
Builds the base hierarchy for the given classname based on our typetree
Epydoc: mrv.maya.util.OptionVarDict
Bases: mrv.util.Singleton
A singleton dictionary-like class for accessing and modifying optionVars.
Note: | Idea and base Implementation from PyMel, modified to adapt to mrv |
---|
Bases: tuple
Returns: | iterators to tuple of key,value pairs |
---|
Returns: | iterator to option var names |
---|
Returns: | iterator to optionvar values |
---|
Epydoc: mrv.maya.util.StandinClass
Bases: object
Simple Function Object allowing to embed the name of the type as well as the metaclass object supposed to create the actual class. It mus be able to completely create the given class.
Note: | Use it at placeholder for classes that are to be created on first call, without vasting large amounts of memory if one wants to precreate them. |
---|
Create the class of type self.clsname using our classcreator - can only be called once !
:return : the newly created class