Getting the color of a shape

wurmston's Avatar

wurmston

16 Oct, 2014 02:14 PM

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

  1. Support Staff 1 Posted by Frederik De Ble... on 16 Oct, 2014 06:59 PM

    Frederik De Bleser's Avatar

    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.

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • Screen_Shot_2014-10-16_at_10.08.15_AM.png 22.3 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