decorative banner

Testing a script (PB only)


    To view any syntax errors while testing and modifying your scripts, use the Errors notification area in the Motion Math window. To display the current value of any variable or expression in the Errors area, use the print () function, using the following format:

    P = print (a)

    The variable a can be any variable or expression. To display the value, assign the value obtained by the function to a second variable (p, in the example). You can use any letter (except x or y) as this second variable.

    In the following example, the vector for the Position property for layer1 is displayed:

    P = print (value (layer1, position))

    The print () function stops the script at the point where you place it.