Module containing helpers to create the UI types at runtime.
Returns: | A path instance of the correct type |
---|---|
Note: | use this constructor if you use the Path.set_separator method at runtime to assure you will always create instances of the actual type, and not only of the type you imported last |
Returns: | s with first letter lower case |
---|---|
Parameter: | preserveAcronymns – enabled ensures that ‘NTSC’ does not become ‘nTSC’ |
Note: | from pymel |
Bases: mrv.util.EventSender
Allows registration of a typical UI callback It basically streamlines the registration for a callback such that any number of listeners can be called when an event occours - this works by keeping an own list of callbacks registered for a specific event, and calling them whenever the maya ui callback has been triggered
To use this class , see the documentation of EventSender, but use the Event instead. If you want to add your own events, use your own Signal s.
The class does NOT use weakreferences for the main callbacks to make it easier to use. Use the WeakFunction to properly and weakly bind an instance function
When registered for an event, the sender will be provided to each callback as first argument.
Remove all event receivers for all events registered in this instance.
Note: | This usually doesn’t need to be called directly, but might be useful in conjunction with other system that do not release your strongly bound instance |
---|
Returns: | list of event ids that exist on our class |
---|
Returns: | instance which sent the event you are currently processing |
---|---|
Raises ValueError: | |
if no event is currently in progress |
Epydoc: mrv.maya.ui.typ.MetaClassCreatorUI
Bases: mrv.maya.util.MetaClassCreator
Builds the base hierarchy for the given classname based on our typetree. Additional support for :
if True, events will use strong references to their handlers