Better Balloons

john's Avatar

john

09 Sep, 2024 05:44 AM

Attached is a slightly better version of my balloons node.

I added balloons to my library in a moment of whimsy. But over the years it has proved surprisingly useful. Not just to make balloons, not just to test colors, but also as a torture test for new nodes.

Balloons produces a complex, arbitrarily long list of geometries that contain both closed and open paths, overlapping in random ways, and colored with subtle translucent overlays. So whenever I make a new node that accepts paths or geometries I eventually feed it a bunch of balloons. If the node can chew on that without exploding, it might just make it into my library.

It had one very minor problem that kept annoying me, though. It required a rectangle to serve as a frame for placing the balloons, and if you didn't provide one, it just sat there doing nothing. If I hadn't used it for awhile I forgot this and then was momentarily baffled by its stubborn refusal to do anything. Then, when I uncovered the problem, I had to make a rectangle and attach it. Not a big deal, but it frustrated my expectation for immediate gratification.

So that's the change. No more required rectangle. Now you just specify the the size of the frame (width, height) and its position. And since I provide default values for these settings, and provide default colors if you don't specify your own list, balloons appear as soon as you place the node.

That's it.

The attached demo shows five different ways of generating a list of colors for your balloons. Each method is different and has its advantages, and each method has enough knobs and wheels to create an infinite number of choices - enough to keep you busy for hours on end. Just change the index on the switch node to step through methods 0 to 4 and then fiddle with each one.

Up up and away!

In the attached

  1. Support Staff 1 Posted by john on 10 Sep, 2024 03:41 AM

    john's Avatar

    I couldn't help myself and today made my balloons EVEN BETTER:

    • Hairline strokes on the balloons in a color complementary to the balloon color
    • Dashed line for the frame
    • Reflections added to each balloon

    Screenshot and revised demo attached.

  2. Support Staff 2 Posted by john on 24 Sep, 2024 12:27 AM

    john's Avatar

    One additional tweak...

    Each balloon string is now properly joined into a single downward moving path tucked behind the balloon tie. I also updated the comment to show the 3.5 version number.

    A change so minor only a perfectionist would notice it.

    Updated (and I hope, final) version attached.

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • balloons_screenshot.png 657 KB
  • improved_balloons.ndbx.zip 207 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

01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM
30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM

 

26 Sep, 2024 06:41 AM
24 Sep, 2024 12:32 AM
24 Sep, 2024 12:27 AM
13 Sep, 2024 12:07 AM
12 Sep, 2024 11:54 PM
07 Sep, 2024 05:16 AM