C_GenerateMap

C_GenerateMap allows you to generate stitch_map and ppass_map channels. The stitch_map UV channels represent the absolute pixel positions of an image normalized between 0 and 1, whereas the ppass_map XYZ channels represent the normalized 3D coordinates of a latlong image ranging between -1 and 1.

C_GenerateMap has one optional input to set the format of the map. If nothing is connected to the src input, the Project Settings > full size format is used.

Inputs and Controls

Connection Type

Connection Name

Function

Input

src

An optional input to set the format of the map. If nothing is connected to the src input, the Project Settings > full size format is used.

Control (UI)

Knob (Scripting)

Default Value

Function

Use GPU if available

useGPUIfAvailable

enabled

When enabled, rendering occurs on the Local GPU specified, if available, rather than the CPU.

Note:  Enabling this option with no local GPU allows the script to run on the GPU whenever the script is opened on a machine that does have a GPU available.
You should also select this if you wish to render from the command line with the --gpu option.

See Nuke 15 Release Notes for more information on the GPUs Nuke supports.

Vectorize on CPU

vectorize

enabled

When enabled, use SIMD instructions in the CPU when possible.

Map

Map

ppass

Sets whether a ppass_map or stitch_map is generated.

channels

channels

ppass_map

Sets which layer the specified data is written into:

ppass - the XYZ data is written into the first three channels of the selected layer.

stmap - the UV data is written into the first two channels of the selected layer.

Note:  All other existing channels in the layer are set to zero.