Vizard 7 » Command Index » Vizard modules » viz » <viz>.postEvent
7.6

<viz>.postEvent

Post an event to the main thread

<viz>.postEvent(  
event  
*args  
)  
event
The ID of the event to send.
*args
Variable number of arguments to send along with the event.

Remarks

This command allows you to send events to the main script thread from different threads. The event is saved in a list, which the main thread processes at the beginning of every frame.

Return Value

None

See also

<viz>.getCurrentEvent
<viz>.getEventID
<viz>.getEventName
<viz>.getNumHandlers
<viz>.postFunctionCall
<viz>.sendEvent