Layer & Scene : Resize (if Bigger) & Stretch-resize

RIBandSR.png

As opposed to the built-in Scale nodes, these node do not take in account past scaling, but resize to a given dimension.
These nodes allow to scale on any given dimension, with or without condition, and optionally on a specific axis only.

Resize nodes

Resize 3D Object
Resizes a 3D Object on a selected plane (x,y or z) and scales the other axes proportionally.

Resize 3D Object if Bigger
Resizes a 3D Object if it’s bigger on a selected plane (x,y or z) or on any plane and scales it down proportionally.

Resize Layer

Resize Layer if Bigger

Stretch-resize Nodes

Stretch-resize 3D Object
Stretch-resizes a 3D Object, forcing it to the new dimensions on each axis.

Stretch-resize Layer
Same but for layers.

-

Place these .c node inside your Vuo Modules folder. You can search for these node by typing BSS in the node library.

License :
Original code by ©Kosada Incorporated, released under MIT License, modified by Bodysoulspirit.
This code may be modified and distributed under the terms of the MIT License.
For more information, see https://vuo.org/license.

bss.scene_.resizeif.c.zip (1.33 KB)

bss.scene_.resizeto.c.zip (1.34 KB)

bss.layer_.resizeif.c.101.zip (1.32 KB)

bss.layer_.resizeto.c.zip (1.33 KB)

bss.scene_.stretch.c.zip (1.09 KB)

bss.layer_.stretch.c.zip (1.1 KB)

RIBandSR.png

Have added 2 nodes to resize layers also (text layers too) (Resize to & Resize if bigger).

Have added 2 nodes to stretch-resize layers & 3D objects.
These nodes do not take account of past scalings & transformations, allowing you to force them to new desired sizes.