Best way to export each layer as a file
-
Anyone have suggestions on the best method or any methods on saving each layer as its own file?
-
That's a pretty quick and easy Ruby (a good first plugin) if I'm right in assuming that your file names are going to be a set. "foo.skp" is output as: "foo_01.skp", "foo_02.skp", ...
-
...or "foo_layerName.skp"...
-
The first question is though, what do you define as being a layer? Entities can be associated with many layers at the same time. So should each entitiy be exported multiple times?
For example, you could draw 2 cubes. Put the geometry of cube 1 on layer 0. And the geometry of cube two on layer 1. The group each face of cube 2 and put each group onto its own layer. Then group all those faces and put the outermost group back on to layer 0. Now what layer is the base geometry on? It has been associated with many layers at this point.
I would guess the bast way would be to move all geometry to layer 0 (which is the recommened modeling methond in SU). Then export based on the layer of the outermost component only, ignoring all inner components. That sounds reasonable, and would probably give the results closest to what I would want to achieve in this scenario.
Chris
-
@xiobus said:
Anyone have suggestions on the best method or any methods on saving each layer as its own file?
It already wrote it...
http://forums.sketchucation.com/viewtopic.php?p=183609#p183609
export_by_layer('type')
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement