tag:support.nodebox.net,2012-11-01:/discussions/nodebox-2-3/4898-getting-the-color-of-a-shapeNodeBox: Discussion 2015-09-07T10:53:43Ztag:support.nodebox.net,2012-11-01:Comment/349682882014-10-16T18:59:22Z2014-10-16T18:59:22ZGetting the color of a shape<div><p>A SVG shape doesn't always have a single color.</p>
<p>It's not impossible though. The trick is to use a
<code>lookup</code> node, and specify <code>fill</code> as the
lookup key. The output of the SVG node is a group, so you have to
<code>ungroup</code> first to split it into paths.</p>
<p>As shown in the screenshot, you will get a list of colors, one
for each path in the SVG file.</p></div>Frederik De Bleser