The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

Show your WorkFrom the old forum

Scale_True Node

No replies yet

  1. 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

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply