Page 1 of 1

Keep Layers when Importing AI/SVG-File?

Posted: Wed Feb 06, 2019 6:19 pm
by DrNibbert
Hello everyone!

I got an artwork in Adobe Illustrator, already broken up in the individual Layers ready to animate. But when I import the File into Moho it all gets put together on one layer, and i have to break it up manually again.
I found out about the "Break Shapes"-Skript, but for the times i want multiple objects on the same layer i still have to correct it manually.
Is there a way to keep the Layers from AI, when i import an AI or SVG File?

Thanks for your help!! :D

Re: Keep Layers when Importing AI/SVG-File?

Posted: Wed Feb 06, 2019 11:42 pm
by synthsin75
I believe there are AI scripts or extensions that allow you to export each layer as a separate AI file.

Re: Keep Layers when Importing AI/SVG-File?

Posted: Thu Feb 07, 2019 4:18 am
by Greenlaw
Here's one:

https://github.com/davidderaedt/Illustr ... r-Exporter

It can export SVG, which may work better for Moho. It works will all layers or selected layers.

I haven't personally used this script but, coincidentally, I need something like this myself right now. :)

I'm assuming if the layers are broken down into 'groups' at the root level, you can get a separate SVG for each 'group'. Kinda like what happens when you import a layered .ai file to After Effects: each 'group' gets individually collapsed as separate layers. I have yet to test this script though, so I really am just guessing at the moment.

Re: Keep Layers when Importing AI/SVG-File?

Posted: Thu Feb 07, 2019 9:42 am
by DrNibbert
Thanks a lot! Is there an exporter that works with AI CS6 ? The Link unfortunately only works with CC

Thanks! :)

Re: Keep Layers when Importing AI/SVG-File?

Posted: Thu Feb 07, 2019 11:15 am
by Maestral
There`s also a way to trick AI to export .ai ver8 files - use artboards as layers and then use Save As... / Use Artboards... etc. routine to get individual files.

Eventual overlapping could still occur but that could be easily avoided by some additional planning - still, as animators we are not estranged from planning ahead ,) and I believe it is a timesaver.

Re: Keep Layers when Importing AI/SVG-File?

Posted: Thu Feb 07, 2019 5:04 pm
by DrNibbert
Maestral wrote:use artboards as layers and then use Save As... / Use Artboards... etc. routine to get individual files.
Thanks that sounds really promising! Can you explain more how this works? Does that work on CS6? How can i convert my Layers into Artboards? Thanks! :)

Re: Keep Layers when Importing AI/SVG-File?

Posted: Thu Feb 07, 2019 5:43 pm
by Maestral
Artboards tool works similar to crop tool and it is available in CS6.

Say you have a background, chair and a character in the scene. You may...

- use the existing one (each file by default has one) for a background, create 2 new artboards next to the existing one and place those other 2 elements on respective artboards. Save As / Use Artboards...

or...

- ... create 2 new artboards as if you`re "cropping" chair and a character. This is where overlapping happens but with some more planning ahead it`s easy to avoid it.

It`s worth mentioning Assets export which is available in CC editions. Assets have a separate panel which makes things easier and export options are similar to mentioned scripts (png, svg...). Select the desired elements and chose the export options which would be applied to each element separately.

Re: Keep Layers when Importing AI/SVG-File?

Posted: Thu Feb 07, 2019 9:16 pm
by DrNibbert
Thanks a lot, thats a cool feature, i didn't know about that yet :-)

I found an Exporter-Script that allows to export layers as (SVG)-Files that works with CS6, here is the link if someone else finds this useful:
https://gist.github.com/TomByrne/7816376

Thanks a lot for all your support! :)