Houdini 20.5 Nodes Copernicus nodes

Function Copernicus node

Applies a mathematical function to a layer

On this page

This node applies a mathematical function to a layer.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

Mask

The amount of the new value to mix in with the original value. Higher values mix in more of the new value. Lower values mix in less of the new value. A value of 1 means this node uses only the new value.

The default value is 1. See Mask for more information.

Function Class

The exposed functions in subsequent parameters are controlled by this category. Arithmetic includes simple mathematical operations like. Powers category contains exponential and logarithmic functions. Trigonometry category includes trigonometric (and hyperbolic) functions.

Arithmetic

Absolute

Returns the absolute value of each channel.

Sign

Returns the sign of each channel. Negative values return -1, 0 values return 0 and positive values return 1.

Normalize

Normalizes the input layer. This means dividing each channel by the magnitude of the incoming vector.

Negate

Negates each channel which means multiplying by -1.

Reciprocal

Returns the reciprocal of each channel which means dividing 1 by the channel’s value.

Floor

Returns the largest integer that is less than or equal to the channel’s value.

Round

Rounds each channel to the closest integer.

Ceil

Returns the smallest integer that is greater than or equal to the channel’s value.

Power

Square Root

Returns the square root of each channel.

pow(x, E)

Raises each channel to the power of Exponent.

pow(b, x)

Raises Base to the power of the channel’s value.

exp(x)

Raises e (2.17128128) to the power of each channel’s value.

Base-Log

Returns the logarithm of each channel with respect to the given Base.

Natural Log

Returns the natural logarithm of each channel (for base e).

Trigonometry

Sin

Returns the sine of each channel.

Cos

Returns the cosine of each channel.

Tan

Returns the tangent of each channel.

Arc Sin

Returns the arc sine of each channel.

Arc Cos

Returns the arc cosine of each channel.

Arc Tan

Returns the arc tangent of each channel.

Hyperbolic Sin

Returns the hyperbolic sine of each channel.

Hyperbolic Cos

Returns the hyperbolic cosine of each channel.

Hyperbolic Tan

Returns the hyperbolic tangent of each channel.

Angle Units

Defines the unit used for the trigonometric function. A pixel of value 1 can be interpreted as a value of 1 Radian, 1 Degree or 1 Circle (2 Pi Radians or 360 Degrees).

Base

The base to use when either using the pow(b,x) or the Base-Log functions.

Exponent

The exponent to use when using the pow(x,E) function.

Inputs

source

The original layer to apply the function to. This can be a Mono, UV, RGB or RGBA layer.

mask

An optional per-pixel mask amount that’s scaled by the Mask parameter.

Outputs

function

The original layer with the function applied.

Copernicus nodes