Scale_True Node

john's Avatar

john

Oct 06, 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

        No formatting (switch to Markdown)

        Already uploaded files

        • scale_true_screenshot.png 335 KB
        • scale_true.ndbx.zip 2.17 KB

          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

            21 Apr 10:47
            21 Apr 10:41
            21 Apr 05:56
            20 Apr 10:11
            19 Apr 19:17

             

            18 Apr 00:04
            14 Apr 22:18
            13 Apr 23:09
            10 Apr 23:30
            10 Apr 22:16
            10 Apr 22:02