sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Best way to export each layer as a file

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 5 Posters 246 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X Offline
      xiobus
      last edited by

      Anyone have suggestions on the best method or any methods on saving each layer as its own file?

      1 Reply Last reply Reply Quote 0
      • M Offline
        MartinRinehart
        last edited by

        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", ...

        Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          ...or "foo_layerName.skp"...

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            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

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              @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')

              TIG

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement