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.

NodeBox 3From the old forum

Getting the color of a shape

1 reply Last reply

  1. Hello!

    I love nodebox! As far as I can tell, it's impossible to get the color of a given shape. I need to import an SVG and manipulate it. Am I missing something?

    Thanks,
    Will Urmston

    BFA Graphic Design '16
    Rhode Island School of Design

    Copy link
  2. NodeBox team

    A SVG shape doesn't always have a single color.

    It's not impossible though. The trick is to use a lookup node, and specify fill as the lookup key. The output of the SVG node is a group, so you have to ungroup first to split it into paths.

    As shown in the screenshot, you will get a list of colors, one for each path in the SVG file.

    Copy link

Know something that helps?

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

Sign in to reply