Vizard 7 » Command Index » Vizard modules » vizact » <vizact>.parallel
7.6

<vizact>.parallel

Create an action that executes a list of actions in parallel

<vizact>.parallel(  
action1, action2, ...  
)  
action1, action2, ...
You can pass as many actions as you want to this command.

Remarks

The action will complete when all of sub-actions are finished.

After you have created the action you can add it to any object as many times as you want.

Return Value

An action that can be applied to any <node3d> object

Example

#Create an action that will fade an object from transparent to opaque while coloring it from black to white
fadeAlpha = vizact.fadeTo(1,begin=0,time=1)
fadeColor = vizact.fadeTo(viz.WHITE,begin=viz.BLACK,time=1)
FadeIn = vizact.parallel( fadeAlpha, fadeColor )

object.addAction(FadeIn)

See also

<vizact>.sequence