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

    [Plugin] Super Drape

    Scheduled Pinned Locked Moved Plugins
    192 Posts 54 Posters 349.7k Views 54 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.
    • Dave RD Offline
      Dave R
      last edited by

      TIG, that worked perfectly for me. Thank you.

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

      1 Reply Last reply Reply Quote 0
      • W Offline
        wyatt
        last edited by

        1.7 gets stuck calculating for me.

        WARNING: make_unique is a deprecated methodof Sketchup:Group
        WARNING: make_unique is a deprecated methodof Sketchup:Group
        Error: #<NameError: undefined local variable or method nsedges' for #<TIG::Superdrape:0x135cef64>> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TIG-Superdrape.rb:303:in drape'
        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TIG-Superdrape.rb:296:in each' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TIG-Superdrape.rb:296:in drape'
        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TIG-Superdrape.rb:121:in `onLButtonDown'

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

          Here's v1.8 http://forums.sketchucation.com/viewtopic.php?p=358314#p358314
          [I hope] it fixes the daft typo that I made that could occasional trip it up...
          The new code should be much faster than before, and [now] more robust...
          πŸ˜•
          Feedback please...

          TIG

          1 Reply Last reply Reply Quote 0
          • W Offline
            wyatt
            last edited by

            Hey Tig. 1.8 works sometimes, sometimes not. When it fails, the plugin appears to draw the physical geometry that intersects with the terrain below, but does not delete the geometry or drape the colors. I assume those actions are normally run in the background, but somehow they're happening in the model. I get this error: Error: #<TypeError: reference to deleted Edge>. If I undo and try it again, it will sometimes work; sometimes I have to explode the draped group and regroup it before it will work.


            SuperDrapeFail.skp

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

              Here's v1.9 http://forums.sketchucation.com/viewtopic.php?p=358314#p358314
              It fixes the 'already erased edge' error that Wyatt found [he's a tough tester... πŸ˜‰ ]
              Feedback please πŸ€“

              TIG

              1 Reply Last reply Reply Quote 0
              • Rich O BrienR Online
                Rich O Brien Moderator
                last edited by

                πŸ‘

                Download the free D'oh Book for SketchUp πŸ“–

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wyatt
                  last edited by

                  Thanks, TIG. Unfortunately I had nothing better to do at work today than try to break your plugin. Thanks for updating it!

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    natsirht28
                    last edited by

                    @unknownuser said:

                    Thanks, TIG. Unfortunately I had nothing better to do at work today than try to break your plugin. Thanks for updating it!

                    can you please tell me how to download this plugin..sorry im a noob

                    1 Reply Last reply Reply Quote 0
                    • Bob JamesB Offline
                      Bob James
                      last edited by

                      @natsirht28 said:

                      can you please tell me how to download this plugin..sorry im a noob

                      Just go to the bottom of the first post on page 1.
                      We were all noobs once πŸ˜„

                      i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        smb5823
                        last edited by

                        @smb5823 said:

                        Hi
                        Sketchup 8 PRO seems to crash once Superdrape.rb is added to the Plugins folder. Was the same with V1.6 but earlier versions were fine.

                        Thanks. 1.9 solved my problem.

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

                          Thanks for sharing, TIG! πŸ‘
                          Maybe I'm using it incorrectly or expecting something different? πŸ˜•

                          I expected that it would look like it does with the Drape tool, only with the materials painted as well. But clearly it's not like that.


                          DrapeVsSuperdrape.jpg


                          here's the scene to try

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

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

                            Your assumption is correct.
                            It's meant to be Drape with materials projected too.
                            It does have occasional glitches.
                            The tiny loose edge in the draped group seem to cause the issue although it shouldn't.
                            When I erase it it drapes OK ?
                            It seems to prevent the proper intersection of the two objects !
                            Drape isn't perfect either in this kind of thing...
                            Go figure!
                            I have to allow it to drape everything, just like Drape itself, as you might well have unfaced edges etc...Capture.PNG If you do get this kind of issue then try a normal Drape then SuperDrape immediately afterwards - the projected edges will then be premade and the materials will then project OK...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              wyatt
                              last edited by

                              I've experienced this problem too. Usually if I undo and run superdrape again (or undo, explode the geometry to be draped, regroup, and superdrape again) it will work. For highly detailed drapes, this is still faster than applying materials by hand to the mesh.

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

                                ok, thank you, TIG.
                                It sort-of works. I actually have something a bit more complex version of the scene I posted and the "delete edge-explode group-regroup-retry super drape" method does not appear to work on that version. It did, however, give me a nice bugsplat. πŸ˜†

                                So I will use with caution. I think the drape+superdrape method for moving the materials automatically may be a nice way to go.

                                I was actually hoping for a drape function like in other 3D apps that will drape a mesh like a cloth over an object. Is there some plugin like that for SU already of which I am unaware?

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

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

                                  Try DropVertices - Plugins Index...DropVertices.PNG

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • massimoM Offline
                                    massimo Moderator
                                    last edited by

                                    As usual TIG was faster...Here is another try with "drop vertices" plugin Fletch. πŸ˜„


                                    drape.JPG

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

                                      Here's v2.0 http://forums.sketchucation.com/viewtopic.php?p=358314#p358314
                                      It now has more robust and accelerated intersecting methods...
                                      Please [re]try and feedback...

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • W Offline
                                        wyatt
                                        last edited by

                                        I really need to find a different hobby so I can stop taking out my frustrations on this plugin. I break it because I love it so much.... πŸ˜• LOL

                                        This build is much faster and it no longer requires that the target surface be the default material - excellent! I haven't found a group yet to break it. Components, however don't work. Maybe that's intentional; maybe it's not necessary - in fact I can't think of a reason why I would need to drape a flat component, so this is more of an FYI-post. Just for kicks, I tried adding a construction point to a component and making a group of that, which caused an incorrect result.

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

                                          If you need to drape components simply explode and group immediately so it works.
                                          I might think about reworking it for instances too... πŸ˜•
                                          Non-edge/faces in the draped group should be ignored - so there was nothing to drape in your grouped compo+cpoint!
                                          It's also best to avoid them in the drapee too...

                                          TIG

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

                                            Here's v3.0 http://forums.sketchucation.com/viewtopic.php?p=358314#p358314
                                            It's little changed... except that it is now an Extension.
                                            [The update is part of my Extension-izing of my toolsets...]
                                            You can now download it as either a ZIP or an RBZ archive.
                                            If you have the recent SUpv8M2 you can now simply install the tool's file/subfolder+files from the RBZ format archive using Preferences > Extensions > Install Extension button...
                                            Otherwise use the ZIP version as before, extracting and installing the files/subfolder_files manually into the Plugins folder...
                                            Note that as an Extension it must now be activated initially with the Preferences > Extensions > Super Drape checkbox.
                                            And as an Extension it can now be activate/deactivated as desired using that checkbox to optimize Sketchup's tool-loading and memory-usage...

                                            TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 10 / 10
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement