IC8 Python API:RLPy REventHandler

From Reallusion Wiki!
Jump to: navigation, search

Description

Inside iClone, events are responsible for communicating various types of status changes. For recieving different types of events, one would need to inherit from the REventCallback base class, and use RegisterCallback to register it. Then, one is able to execute relevant commands for the corresponding events, i.e. refreshing user interfaces, etc. See Also: REventCallback

Constructor & Destructor

__init__ (self)

Initializes a new event handler instance.

Member Functions

RegisterCallback (pCallback)

Register an event callback and return an id which can be used when UnregisterCallback is called. See Also: UnregisterCallback

Parameters

  • pCallback

SetListener (pListener)

Sets RIEventListener instance [internal].

Parameters

  • pListener

UnregisterCallback (uId)

Unregister a callback event by id. When successful, the EventCallback will be removed and the system will no longer receive the event. If the id can not be found, then return RLPy.RStatus.Failure. See Also: UnregisterCallbacks

Parameters

  • uId

UnregisterCallbacks (kIds)

Unregister several callback events at once. If an id in the list can not be found, then return RLPy.RStatus.Failure. See Also: UnregisterCallback

Parameters

  • kIds

Properties

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.