1. add the shader toolkit script to the script section of the editor.2. to zoom in: create an execute a script action part & add something like this...[code]shaderViewport(1.2, 300, 200, math.rad(45), 3000, easeLinearInOut) -- zoom 1.2x to 300x200 over 3 seconds with 45º rotation value.[/code]3. to reset: create an execute a script action part & add this to it...[code]shaderViewport(1, 0, 0, 0, 3000, easeQuintOut)[/code]here is the syntax for the function...[code]shaderViewport(zoom, x, y, rotation, delay, easing)[/code]P.S: the rotation value is in radians, which I find a little confusing. It's based on Pi, but you can use degrees by using the math.rad() function to convert degrees to radians as you can see in the examples I posted above.
by afrlme, 11 years ago