Stretch node

Left Toolbar > 3D icon Stretch Nodes > Stretch icon Resize

The Stretch node breaks the input image in 9 sections, 3 in X and 3 in Y, and resize these sections at different rates. This node was designed to resize images like frames, where the corners should always have the same aspect ratio.

input
In0 Img In1 Img

output
Out0 Out1

Procedure

To Stretch an image:

  1. On the left toolbar choose Layout Nodes > Stretch. Layout icon > Stretch icon

  2. Drag the Stretch icon into the Node Graph.

    Stretch node

  3. Connect the output of an image node into the Img input in the Stretch node.

  4. Adjust the attributes of the Stretch node to modify the output image.

Input-Output

The Stretch node is a 1:1 Multi Input Output node.

Inputs

Img
The Image to be stretched.

Outputs

Img
The stretched image.

Attributes Panel

Stretch attributes

Cut X
The vertical cuts on the input image.

Cut Y
The horizontal cuts on the input image.

Size X
The size of the vertical sections of the output image.

Size Y
The size of the horizontal sections of the output image.

Interpolation Interpolation method for the resize algorithm.

Reset Sets all values to their original sizes.

Reset Resize This value applies a global resize when the Reset button is pressed.

Show Input gizmo Shows and hides the input gizmo.

Shows Output gizmo Shows and hides the output gizmo.

Gizmo

Allows the user to modify the output image in an interactive way in the Image viewport:

Input Gizmo - Yellow

Stretch Input gizmo

The input gizmo shows the lines that cut the input image, and allows you to edit the cuts value in the input image. Holding down the shift key while draggin the cut line, both the cut values on the input image and the size values on the output image are modified at the same time.

Ouptut Gizmo - Green

Stretch Output gizmo

The output gizmo allows the user to set the size and position of the