sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    RickW... Fletch is back... :roll:

    Scheduled Pinned Locked Moved Plugins
    9 Posts 4 Posters 1.8k Views 4 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.
    • F Offline
      Fletch
      last edited by

      Hi Rick, Todd, all the crew!

      We were trying to export a boat from SU to Acad format to eventually render it in VIZ.

      in VIZ (in case you don't use it) you apply mats to your .dwg file using layers. So each seperate material has a corresponding layer you draw that object on in ACAD. Great.

      in SU (as you are clearly well aware) you just apply materials... doesn't matter what layer is what.

      SU exports it's layers to ACAD layers fine, but not textures.

      you created "group by texture", you created "group by layer", can you help me create "groups on layer by texture?"

      It would:
      --create a set of layers named for the materials used in the scene (I believe they can't have spaces in them?! dots and underscores are fine)
      --Then it would group all objects by material, (this step may not be necessary, but could be handy in some situations...)
      --then place each group on the proper corresponding layer.

      I opened up all your "group by" scripts + the "put on layer" script thinking to myself... "come on Fletch, you can figure this one out"... then realized it's like reading Croatian... and for me, that means I recognize one word every 4 or 5 lines. 😆

      I need this for when I take a component someone has kindly shared (like that big fancy boat someone shared a while back) and I want to bring it into VIZ... any help w/ this would be appreciated. You'd probably be able to do this in about 5 minutes... I'd be working on it for about 5 years...

      Right now of course the work around is group by texture, then create my own layers and pop the groups on the correct layers... but couldn't this be easily automated?

      thanks a million for thinking it over, Rick.

      Fletch
      Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        Fletch,

        How can I resist such a request? 😄 I'll put it on the list, and hopefully it will be faster than some other projects I've been working on - maybe even this weekend (though I'm not promising anything).

        RickW
        [www.smustard.com](http://www.smustard.com)

        1 Reply Last reply Reply Quote 0
        • F Offline
          Fletch
          last edited by

          well, you rock, as always. I'll keep my ears/eyes open... thx.

          Fletch
          Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

          1 Reply Last reply Reply Quote 0
          • F Offline
            Fletch
            last edited by

            Hi Rick, just checking to see if this one has slipped thru the perverbial 'cracks'?!

            Fletch
            Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

            1 Reply Last reply Reply Quote 0
            • Didier BurD Offline
              Didier Bur
              last edited by

              Hi Fletch and all,

              Well, back from Croatia (wonderful country) I can read a little Croatian now 😉
              I just wanted to add that my script "layers_materials.rb" could help you do the job. It won't build groups but will create layers based on materials and put all entities on relevant layers in a matter of seconds.
              Hope this helps
              Dovidenja 😆 (Bye in Craotian)

              DB

              1 Reply Last reply Reply Quote 0
              • R Offline
                RickW
                last edited by

                I modded my "GroupByMaterials" plugin to group by materials and put the group on a layer named for the relevant material. The new plugin is called (surprise) "LayerByMaterial" (unless there's a consensus for "LayerGroupByMaterial") and will soon be available at Smustard.

                RickW
                [www.smustard.com](http://www.smustard.com)

                1 Reply Last reply Reply Quote 0
                • F Offline
                  Fletch
                  last edited by

                  Bok, Didier, Hvala! (Croatian for "Bon Jour, Didier, Merci") 😄
                  I will check out your script... and I look forward to seeing yours, Rick, I just looked and it's not there yet. 😉

                  Fletch
                  Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    Fletch
                    last edited by

                    Didier,
                    Your script works beautifully, thanks for the tip!

                    Fletch
                    Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      rv1974
                      last edited by

                      Unfortunately the biggest drawback of all these match/group (by)layer/material- they don't work with the complex hierarchy (components nested in components)

                      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