Keep Layers when Importing AI/SVG-File?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Keep Layers when Importing AI/SVG-File?

Postby DrNibbert » Wed Feb 06, 2019 6:19 pm

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
Showreel 2018 https://vimeo.com/254290989 - Moho 12.5.1, macOS 10.10, Adobe CS6
User avatar
DrNibbert
 
Posts: 46
Joined: Tue Jun 19, 2018 7:48 am

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

Postby synthsin75 » Wed Feb 06, 2019 11:42 pm

I believe there are AI scripts or extensions that allow you to export each layer as a separate AI file.
- Wes
ImageImageImage
User avatar
synthsin75
 
Posts: 6997
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma

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

Postby Greenlaw » Thu Feb 07, 2019 4:18 am

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.
Last edited by Greenlaw on Thu Feb 07, 2019 6:21 pm, edited 2 times in total.
User avatar
Greenlaw
 
Posts: 4210
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles

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

Postby DrNibbert » Thu Feb 07, 2019 9:42 am

Thanks a lot! Is there an exporter that works with AI CS6 ? The Link unfortunately only works with CC

Thanks! :)
Showreel 2018 https://vimeo.com/254290989 - Moho 12.5.1, macOS 10.10, Adobe CS6
User avatar
DrNibbert
 
Posts: 46
Joined: Tue Jun 19, 2018 7:48 am

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

Postby Maestral » Thu Feb 07, 2019 11:15 am

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.
User avatar
Maestral
 
Posts: 322
Joined: Tue Jan 27, 2009 5:44 pm
Location: Belgrade, Serbia

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

Postby DrNibbert » Thu Feb 07, 2019 5:04 pm

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! :)
Showreel 2018 https://vimeo.com/254290989 - Moho 12.5.1, macOS 10.10, Adobe CS6
User avatar
DrNibbert
 
Posts: 46
Joined: Tue Jun 19, 2018 7:48 am

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

Postby Maestral » Thu Feb 07, 2019 5:43 pm

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.
User avatar
Maestral
 
Posts: 322
Joined: Tue Jan 27, 2009 5:44 pm
Location: Belgrade, Serbia

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

Postby DrNibbert » Thu Feb 07, 2019 9:16 pm

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! :)
Showreel 2018 https://vimeo.com/254290989 - Moho 12.5.1, macOS 10.10, Adobe CS6
User avatar
DrNibbert
 
Posts: 46
Joined: Tue Jun 19, 2018 7:48 am


Return to How Do I...?

Who is online

Users browsing this forum: No registered users and 2 guests