Scale_True Node

john's Avatar


06 Oct, 2022 09:07 AM

Attached is the latest addition to my node library: scale_true. I've been meaning to make this node for years.

The Nodebox scale node has an annoying quirk: it resizes objects but does not resize their strokeWidths. This can sometimes produce ghastly effects, forcing you to adjust all stroke widths in your original diagram or drawing.

Scale_true works just like scale except that it also scales any stokeWidths you have defined. Very easy!

There is one difference. Scale_true only accepts a single value for the scale amount (100 = leave the same size). This does not allow you to scale differently in one dimension than in the other. In such cases the change needed to any strokeWidths would depend on the overall geometry and would require your artistic judgement, so you would need to use scale as you do now. However most scaling is done evenly to maintain the original proportions; scale_true will work fine in those cases.

Demo attached (see screenshot). Scale is on the left, scale_true on the right. As you change the scale amount in the number1 node, scale will cause the edges to either almost disappear or completely overwhelm the shapes, while scale_true will maintain the relative proportions at all scales.

Scale_true will also appear in the next release of my node library. Enjoy and please reply if you encounter any problems with this node.


Reply to this discussion

Internal reply

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

Attaching KB article:


Already uploaded files

  • scale_true_screenshot.png 335 KB
  • 2.17 KB

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

15 Jul, 2024 07:37 PM
11 Jul, 2024 03:48 PM
28 Jun, 2024 01:51 PM
27 Jun, 2024 02:56 PM
27 Jun, 2024 01:57 PM


26 Jun, 2024 08:17 PM
26 Jun, 2024 11:35 AM
24 Jun, 2024 02:42 AM
24 Jun, 2024 12:46 AM
23 Jun, 2024 08:07 AM
08 Jun, 2024 09:05 AM