![]() ![]() To get back the original layer-structure I executed FixSvgLayers with a depth of 0, then selected the container layer and executed "GroupsToLayers" with depth of 0. In my case I had three layers, where one of them was just a container for more sub-layers. As a workaround my script prompts for a recursion depth and converts all groups to (sub-)layers within that depth. Sub-layers are problematic though, because there is no information to distinguish actual groups from groups which should be sub-layers (if there is please let me know!). These can be converted back without ambiguity. When opening the SVG all the actual layers are groups within a new "Layer 1". The third script (ConvertGroupsIntoLayers) is just needed by the other two, calling it from the menu opens a prompt but doesn't do anything.Both scripts prompt for a "recursion depth" which specifies how many levels of groups-groups-groups should by converted to sub-sub-sub-layers."GroupsToLayers" converts all groups within the currently active layer to layers, without moving or deleting anything."FixSvgLayers" converts all groups within the "Layer 1" back to layers, moves them to the document root and deletes the now empty "Layer 1".Yay! All the groups are now actual layers and "Layer 1" is gone for good.Go to File->Scripts->Fix SVG Layers->FixSvgLayers.Start Illustrator and load the SVG where all the actual layers are now groups within a new "Layer 1".Where that is depends on your installation and language, mine is at:Ĭ:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Presets\de_DE\Skripten ![]() Place the "Fix SVG Layers" folder in the standard Illustrator scripts folder.It indeed does really matter to me so I stopped crying, spent a few hours and scripted this solution: ![]()
0 Comments
Leave a Reply. |