Getting the color of a shape

wurmston's Avatar


16 Oct, 2014 02:14 PM


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?

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


? 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

22 Feb, 2024 05:51 AM
22 Feb, 2024 01:11 AM
21 Feb, 2024 05:27 PM
21 Feb, 2024 04:49 PM
16 Feb, 2024 05:24 PM


06 Feb, 2024 04:45 AM
19 Jan, 2024 09:50 AM
13 Jan, 2024 03:47 AM
05 Jan, 2024 05:10 PM
05 Jan, 2024 04:54 PM
04 Jan, 2024 11:49 PM