Panel: Function Script

 

On this panel you can define a script that transforms the coordinates of the texture's pixels to other coordinates. The script is noted by simple commands that look like v=e, where v is a variable and e is a Mathematical Expression.

The following input signals are for disposal:

amp: configuration variable amplify value / 100 (-10.0-10.0)
radius: configuration variable direction radius (0.0-1.0)
angle: configuration variable direction angle (0.0-2*Pi)
width: width of the range covered by the surface points
height: height of the range covered by the surface points
cx: horizontal coordinate of the center of all surface points (0.0-1.0)
cy: vertical coordinate of the center of all surface points (0.0-1.0)
x: horizontal coordinate of the pixel (0.0-1.0)
y: vertical coordinate of the pixel (0.0-1.0)

The last commands of the script must define the variables ox and oy (o=output). These variables control the coordinates of the pixel after processing the script and can have values between 0 and 1.

A simple example is ox=x+0.5 and oy=y+0.5, which shifts the texture by half its width and height.

 

Console/Script Switches

Name

Range

Description

script text

none

comma separated script lines