All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Generating Events

Events are generated using POP_ContextData::addEvent().

Once an event has been added, it remains active. To signal that an event has ended, POP_ContextData::removeEvent() should be called. The event should remain active for at least one full frame (or timestep), so the POP should typically clear the event in a successive cook, usually before the activation check.

Here is an example of how to generate events. Note that event_name is a UT_String.

// check activation event
if (!checkActivation(data, (POP_FParam) ACTIVATE))
goto done;
if (event_occurred)