When I load my layered SVG files into Illustrator all the layers works just as they should but they are always positioned under a new layer; "Layer 1" that I did not specify.
How do I create a SVG where my top layers end up as the top layer in Illustrator as well?
To move content from one layer to another, select the content you want to move in the Layers panel and drag the color box (called the Selection indicator) to the right of the layer name up or down to the new position.
When you open an SVG file in Silhouette Studio, all the layers will be grouped together. If you select the file, it all moves as one piece. If you leave it that way, you will only be able to use one type of material to cut out the entire file.
a.svg
and b.svg
to see what extra metadata Illustrator is saving.<i:pgf>
element).It indeed does really matter to me so I stopped crying, spent a few hours and scripted this solution:
A bit more information:
When opening the SVG all the actual layers are groups within a new "Layer 1". These can be converted back without ambiguity. 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!). As a workaround my script prompts for a recursion depth and converts all groups to (sub-)layers within that depth.
In my case I had three layers, where one of them was just a container for more sub-layers. 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.
If all three layers were "container"-layers executing FixSvgLayers with a depth of 1 would have been enough to get back the correct structure.
If you don't want any groups and every group should be converted to a (sub-)layer just enter a high enough number as the recursion depth.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With