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