Vizard 8 » Command Index » Vizard modules » viz » <viz>.update
8.1

<viz>.update

Manually trigger update of internal Vizard tasks

<viz>.update(  
flag  
elapsed = 0.0  
)  
flag
A combination of the following update flags:

Update flags

viz.UPDATE_PLUGINS

Update all plugin extensions and sensors

viz.UPDATE_INPUT

Update keyboard/mouse input state and trigger any input related events

viz.UPDATE_NETWORK

Update network connections and trigger network related events

viz.UPDATE_SCENEGRAPH

Update internal scene graph animations

viz.UPDATE_TIMERS

Update and trigger timer events

viz.UPDATE_PHYSICS

Update physics simulation and trigger physics events

viz.UPDATE_LINKS

Update all link objects

viz.UPDATE_MEDIA

Update and trigger media events

viz.UPDATE_POSTED_EVENTS

Trigger all pending posted events

elapsed = 0.0
The amount of elapsed time (in seconds) to simulate when triggering the update.

Remarks

This command will trigger the specified internal Vizard update tasks. These tasks are automatically triggered by Vizard every frame at a certain priority level.

If you need certain update tasks to be executed at a custom priority level, then you can use this command.

Return Value

None

Example

# Manually update link and media objects
viz.update( viz.UPDATE_LINKS | viz.UPDATE_MEDIA )