Technical‎ > ‎Nuke‎ > ‎VP‎ > ‎

Generic

Generic functions are almost only basic mathematic functions.
Thoose nodes are design to work directly on datas.


 Functions Description
 Absolute Put all values in positive: abs(A)
 ArcTangent Arc Tangent
 AddChannel Add RGB channels together
 Ceiling Truncates to next integer 
 Clamp Clamps in to between low and high values
 Compress Compress values in between low and high values
 Expand Expand values in between low and high values
 Exponent Natural exponent 
 Falloff Falloff is a function that modify linear values.

 Graph Expression
 Linear
Is the normal computation (Do Nothing)
 EaseIn
1 - exp( -4 * value)
 EaseOut
exp( -4 * (1-value) )
 EaseIn EaseOut
0.5 - 0.5 * cos( value * pi )
 Gaussian
( 1- exp( -4 * value²) ) * 1.018657

 FitRange Allow you to put a range of values to another range space.
 Floor Truncates to next lowest integer
 Fraction 
 Function Some mathematic and trigonometric functions in a single node.
 Most of this functions are available as single node.

 Functions Description
 abs(x) Absolute Value. Makes all negative values positive
 sign(x) Sign function. Returns 1 if positive, -1 if negative or 0 if zero
 -x Negate
 1/x Reciprocal or Rational
 floor(x) Rounds down all fractional values to the next lower integer
 ceil(x) Rounds down fractional values to the next higher integer
 int(x) Remove the floating point values and keep only the integer
 pow2(x) Returns the value of x raised to the power of 2
 sqrt(x) Square Root
 x^E Raises the value to an exponent, given by the exponent parameter
 E^x Raises the base to the exponent value
 log(x) Returns the natural logarithm of x
 log10(x) Returns the base 10 logarithm of x
 sin(x) Computes the sine of x (x is in degrees)
 cos(x) Computes the cosine of x (x is in degrees)
 tan(x) Computes the tangent of x (x is in degrees)
 asin(x) Computes the arcsine of x, returning the result in degrees
 acos(x) Computes the arccosine of x, returning the result in degrees 
 atan(x) Computes the arctangent of x, returning the result in degrees
 sinh(x) Computes the hyperbolic sine of x
 cosh(x) Computes the hyperbolic cosine of x
 tanh(x) Computes the hyperbolic tangent of x

 Hypotenuse sqrt( A² + B² )
 toInt Convert to integer value
 Lerp ya + ( yb - ya ) * ( x - xa) / ( xb - xa )
 Modulo Modulo returns the remainder in float
 Negate negate the value: -A
 pi the pi constant: 3.14159265
 Power Returns A to the B power
 ScanSlice cut a picture line and stretch it to fill the picture.
 Sign Sign function returns 1 if positive, -1 if negative and 0 if zero
 Slice Binary condition. (A > B)? 1 : 0
 Smoothstep returns a smooth cubic interpolation
 Spike Similar the solarization but per pixel based
 SquareRoot Square root. sqrt(9) = 3
 Step Returns 0 if x is less than a, returns 1 otherwise


Comments