I am creating a tree draw in Adobe Illustrator and I want to export this draw into Adobe After Effects and later create some animations on leaves and later export with Bodymovin library into the React project.
I have created everything and in the end, I had very bad performance cause of a lot of paths inside my draw. So I need to change this draw into less weight group of paths.
I want to merge those branches and leaves that would have been animate and I am getting a problem with merging groups into one shape in Illustrator.
When I want to Unite paths in Pathfinder my branch has getting the same color from leaves.
How to merge/flat group into one shape and save used colors? I have tried to rasterize layers but it generates me images
.png and later looks terribly in the browser.