Scale_True Node

john's Avatar

john

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.

John

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
  • scale_true.ndbx.zip 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

Generic

? 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

22 Nov, 2022 03:21 PM
22 Nov, 2022 10:40 AM
22 Nov, 2022 09:55 AM
20 Nov, 2022 12:06 PM
08 Nov, 2022 10:44 PM

 

05 Nov, 2022 08:40 AM
03 Nov, 2022 09:38 PM
24 Oct, 2022 11:32 AM
06 Oct, 2022 09:07 AM
05 Oct, 2022 02:22 AM
30 Sep, 2022 11:36 PM