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

<viz>.postFunctionCall

Post a function call to the main thread

<viz>.postFunctionCall(  
func  
*args  
**kw  
)  
func
The function to call
*args
Positional arguments to pass to the function
**kw
Keyword arguments to pass to the function

Remarks

This command allows you to schedule a function to be called within the main script thread. The specified function and arguments will be saved to 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>.postEvent
<viz>.sendEvent