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

    [Plugin] Soften/Unsoften

    Scheduled Pinned Locked Moved Plugins
    26 Posts 13 Posters 36.9k Views 13 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.
    • W Offline
      watkins
      last edited by

      Dear Matthieu and Cadfather,

      I am a little confused about what to download. I have the icons showing, but nothing works. The last thing I downloaded and tried is the very last .zip file posted by Cadfather.

      Regards,
      Bob

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

        Hi CadFather !
        I updated the code, with another tool. It softens edges whose angle normal faces is below 20 degrees.
        So now you've got three tools :

        Mildly Soft edges
        Completely Soft edges
        Unsoft edges

        You forgot a bit of code at the end...

        if (not file_loaded?("Soften.rb"))
        

        Now the tool will be loaded just one time !

        and the code is also changed following the RickW notices (I hope πŸ˜‰ )

        Good luck for the next icon πŸ˜„

        EDIT : Version 1.1


        Soften.rb

        Frenglish at its best !
        My scripts

        1 Reply Last reply Reply Quote 0
        • CadFatherC Offline
          CadFather
          last edited by

          will post a working final version from Matt very soon - need to finish a couple of things first.

          Bob, yes one of those... πŸ˜‰

          1 Reply Last reply Reply Quote 0
          • CadFatherC Offline
            CadFather
            last edited by

            Hi Matt, i have a problem with the new version: nothing happens πŸ˜•

            still works with the old one

            i have updated the script with the 3 icons (changed the name for the new command icon)

            1 Reply Last reply Reply Quote 0
            • CadFatherC Offline
              CadFather
              last edited by

              small update for whoever likes this idea:

              tweaked Matt's plugin so i get 2 icons (if you ever needed) enable in view > toolbars > soften
              (i removed menus in plugins)

              now it is a quick step!

              icons.png

              Thanks Matt! πŸ‘

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

                Thanks!

                1 Reply Last reply Reply Quote 0
                • P Offline
                  publied
                  last edited by

                  oh my hero, my savior! this plugin is very useful for me! thanks!

                  hire me@ http://www.publied.it !

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tedvitale
                    last edited by

                    Does anybody know of a plugin that allows me to soften multiple grouped objects? I have a lot of 3DS models that i import that need to be smoothed and cleaned up, but I have to open each group and soften them individually, which is quite painstaking. Any Suggestions?

                    Ted Vitale
                    3D Artist and designer
                    Sketchup 2013 Pro

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

                      http://sketchucation.com/forums/viewtopic.php?t=22920

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

                        very handy tool..thanks alot

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

                          I can't find a way to assign shortcuts for these tools. Does the needs to be updated, or it's me missing something?

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

                            Remember that this script is ~10 years old !
                            Because it only makes a toolbar there are no menu items to shortcut onto !
                            However, the native smooth/soften toolset is easily accessed via a shortcut, as that has context and menu items...
                            Why do you need this tool in preference to the built-in native one - the old code uses the very slow 'typename' entity checker, the native one also has more controls over what is changed... ?

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • designerbursaD Offline
                              designerbursa
                              last edited by

                              jhs powerbar 3d rotate error fix

                              def onLButtonDown(flags, x, y, view)

                              nothing with this click if nothing is selected

                              puts 'nil' if(Sketchup.active_model.selection.length == 0)

                              Keep what's currently selected.

                              Might be temporarily selected because its hovered if there was no selection when tool was selected

                              @hasSelection = true

                              Select point when and draw when clicking

                              first 3 clicks select points and set jaw & pitch. 4th and 5th click are optional and sets roll

                              if @state == 0
                              # Select anchorpoint
                              #@pAnchor.pick view, x, y
                              if @pAnchor.valid?
                              @state = 1
                              @status_text = "Grab entity." # first status text defined in reset()
                              Sketchup::set_status_text(@status_text, SB_PROMPT)
                              end

                              elsif @state == 1
                              # Select startpoint 1
                              #@pStart1.pick view, x, y, @pAnchor
                              if @pStart1.valid?
                              @state = 2
                              @status_text = "Pick target to drag entity towards."
                              Sketchup::set_status_text(@status_text, SB_PROMPT)
                              end

                              elsif @state == 2
                              # Select targetpoint 1 and set yaw and pitch for selection
                              #@pTarget1.pick view, x, y, @pAnchor
                              if @pTarget1.valid?
                              @state = 3
                              @status_text = "(Optional) Grab entity again."
                              Sketchup::set_status_text(@status_text, SB_PROMPT)

                                self.rotateYawPitch(@pAnchor.position, @pStart1.position, @pTarget1.position)
                              
                                # Set rotated flag so script knows whether to update view or not when leaving tool
                                @rotated = true
                              end
                              

                              elsif @state == 3
                              # Select startpoint 2
                              #@pStart2.pick view, x, y, @pAnchor
                              if @pStart2.valid?
                              @state = 4
                              @status_text = "Pick target to drag entity towards."
                              Sketchup::set_status_text(@status_text, SB_PROMPT)
                              end
                              elsif @state == 4
                              # Select targetpoint 2 and set roll for selection
                              #@pTarget2.pick view, x, y, @pAnchor
                              if @pTarget2.valid?
                              self.rotateRoll(@pAnchor.position, @pStart2.position, @pTarget2.position, (@pTarget1.position - @pAnchor.position))

                                self.reset(view)
                              end
                              

                              end
                              end#def

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

                              Advertisement