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.
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.
|
__init__(self,
eventId,
**kwargs)
Initialize our instance with the callbackID we are to represent. |
source code
|
|
|
send(self,
inst,
*args,
**kwargs)
Sets our instance prior to calling the super class |
source code
|
|
|
|
|
remove(self,
eventfunc)
Also removes our callback if the last receiver is gone |
source code
|
|
Inherited from util.Event :
__call__ ,
__get__ ,
duplicate
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
|
|
|
|
|
|
|