Page 1 of 1

Merge layers?

Posted: Wed Apr 24, 2024 11:30 am
by Nicohk92
So there is now a button to merge shapes. But is there a way to merge layers? Putting all shapes in one single layer.
Perhaps a script that does it?

For example I just imported an svg with tons of different layers for something that could really be in just one, and wish I could avoid selectall/copy/pasting dozens of time.

Re: Merge layers?

Posted: Wed Apr 24, 2024 12:03 pm
by hayasidist
did you use the 14.0 svg import? that has an option to merge layers...

Re: Merge layers?

Posted: Wed Apr 24, 2024 2:21 pm
by Greenlaw
Here's one: Merge Vector Layers

Note that this tool doesn't account for layer transformations, but It's good practice not to transform artwork layers in the setup frame 0; better to transform the points directly instead. If you have transformed any layers at frame 0 differently from other layers in your selection, you'll want to first use Reset Layer Origin, which resets the transform and applies it directly to the vertices.

Or do what Hayasidist suggested with the SVG import command. (Cool tip, Paul! I'm going to try it now.) :D

Re: Merge layers?

Posted: Wed Apr 24, 2024 2:33 pm
by Greenlaw
BTW, if you ever need to do the opposite and break apart a vector drawing into multiple layers, use the RT Break Apart Shapes command under Scripts > Layer Effects. I had to use this command for the very first time last week, and it did the job perfectly! (Tip: You need to select the points of all the shapes before running it.)

Note: this tool has a Put All Shapes Into One Layer option, but I never got that part to work for me. I just assumed it was broken because it's a very old script, but now I'm wondering if I just used it incorrectly. Does anybody know if this part still works?

Re: Merge layers?

Posted: Fri Apr 26, 2024 8:15 am
by Nicohk92
Thnak you so much! I'll try that script. It's true that I could have used the import svg option in that particular case.