<vizact>.call

Create an action that will call a function with the specified arguments

 

<vizact>.call(
    func    
    args    

)

 

func

The function to call


args

The arguments to pass to the function


Remarks

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

#When the object is finished moving 'myfunc' will be called with arguments 5 and 6
def myfunc(p1,p2):
    print p1,p2

object.add(vizact.moveTo([0,0,10],speed=1))
object.add(vizact.call(myfunc,5,6))