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.

The default value is 1, which means this node uses only the new value. See Mask for more information.

Function Class

The functions to expose in this node.

Arithmetic

Expose simple mathematical operations.

Powers

Expose exponential and logarithmic functions.

Trigonometry

Expose trigonometric and hyperbolic functions.

Arithmetic

When Function Class is Arithmetic, this is the mathematical operation to use.

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 by dividing each channel by the magnitude of the incoming vector.

Negate

Negates each channel, which multiplies them by -1.

Reciprocal

Returns the reciprocal of each channel, which divides a value of 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’s greater than or equal to the channel’s value.

Power

When Function Class is Powers, this is the exponential or logarithmic function to use.

Square Root

Returns the square root of each channel.

pow(x, E)

Raises each channel to the power of the Exponent value.

pow(b, x)

Raises the Base value 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 Base value.

Natural Log

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

Trigonometry

When Function Class is Trigonometry, this is the trigonometric or hyperbolic function to use.

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.

Base

When Power is pow(b, x) or Base-Log, this is the base to use.

Exponent

When Power is pow(x, E), this is the exponent to use.

Angle Units

When Function Class is Trigonometry, this is the unit to use for the trigonometric function.

Radians

Interpret the pixel values as radians. For example, this interprets a pixel value of 1 as one radian.

Degrees

Interpret the pixel values as degrees. For example, this interprets a pixel value of 1 as one degree.

Circles (2pi)

Interpret the pixel values as circles. For example, this interprets a pixel value of 1 as one circle (which is 2 pi radians or 360 degrees).

Inputs

source

The original layer to apply the function to.

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