Render Center

Patryk's Avatar


24 Nov, 2019 12:07 PM

Hi, do you have any way for the project you made to fit in the rendering area? Not to do it manually

  1. Support Staff 1 Posted by john on 24 Nov, 2019 09:56 PM

    john's Avatar

    Hi Patryk,

    Yes, it's easy to center and resize drawings in NodeBox.

    First of all, just in case you weren't already aware, you can redefine the rendering area itself by going to File / Document Properties... and changing the values for canvasHeight and canvasWidth. This defines what gets saved when you export as a PNG, etc.

    To center your drawing just feed the final node into a group node and then an align node (see attached screenshot).

    You can then feed that into a scale node to resize the drawing so that it fits perfectly into the canvas area. When scaling it is sometimes necessary to adjust the line thickness in the colorize node.

    Another option is to hook that group node to a fit_to node. This will translate and resize your drawing to fit any bounded area you wish. Just feed in a rect node to define the bounds and adjust the position and size of that rectangle to your heart's content.

    It's also possible to add some nodes up top to automatically fit the quad curve to any bounding area and then redraw the whole thing from scratch. But I don't think that's necessary in this case.

    One of the joys of NodeBox is getting instant feedback as you adjust the dimensions of a scale node or bounding rect.



  2. 2 Posted by Patryk on 26 Nov, 2019 08:33 AM

    Patryk's Avatar

    You are amazing, thank you!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

04 Dec, 2023 10:18 PM
04 Dec, 2023 10:14 PM
04 Dec, 2023 11:38 AM
29 Nov, 2023 05:30 AM
28 Nov, 2023 12:38 AM


27 Nov, 2023 04:40 AM
26 Nov, 2023 10:02 AM
22 Nov, 2023 09:33 AM
20 Nov, 2023 08:54 PM
17 Nov, 2023 01:43 AM
15 Nov, 2023 06:58 AM