SVG import, with individual layers

alexandre's Avatar

alexandre

13 Dec, 2016 01:39 PM

Is it possible to import an SVG, and have layers in separate parts (not grouped)?

So for ex, I could rotate a specific layer of the SVG, not the whole thing?

  1. Support Staff 1 Posted by lucasnijs on 18 Dec, 2016 09:33 PM

    lucasnijs's Avatar

    Ungroup the svg and you can slice any part of it and let it behave independently.

  2. 2 Posted by alexandre on 18 Dec, 2016 09:38 PM

    alexandre's Avatar

    I did ungroup in Illustrator/exported as SVG/mported into nodebox

    but it's became "one piece" on nodebox

    Attached example file

  3. Support Staff 3 Posted by john on 19 Dec, 2016 01:42 AM

    john's Avatar

    Alexandre,

    If you attach your Import SVG node to an Ungroup node, NodeBox will resolve the svg into its parts.

    It's all or nothing, though, so in this case ungrouping your svg results in a list of 41 individual shapes (10 for each plate plus the 1 for the gray rectangle).

    If you know the structure of your svg, you can slice the resulting list into subsections and group those subsections to form layers, which you can then rotate or reposition or do with as you please.

    I am attaching a very simple network which does this. It imports your svg, ungroups it, and then forms the top two plates into two separate objects. I rotate the white plate by 90 degrees, leave the dark plate as it was, then recombine them.

    Please let me know if you found this helpful.

    John

  4. 4 Posted by alexandre on 19 Dec, 2016 04:17 PM

    alexandre's Avatar

    Hey Jonh, thanks so much! This is exactly what I wanted to do!

    Ideally, the "layer slicing" would be same as layer structure defined in Illustrator. Is there a node that does that, instead of manually doing it?

    What is missing is the imported text (attached original SVG). Is there a way to have it imported (as text, not outlined/vector)?

    best!

Reply to this discussion

Internal reply

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

Attaching KB article:

»

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