[Plugin] Soften/Unsoften
-
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 -
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 edgesYou 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
-
will post a working final version from Matt very soon - need to finish a couple of things first.
Bob, yes one of those...

-
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)
-
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!

Thanks Matt!

-
Thanks!
-
oh my hero, my savior! this plugin is very useful for me! thanks!
-
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?
-
-
very handy tool..thanks alot
-
I can't find a way to assign shortcuts for these tools. Does the needs to be updated, or it's me missing something?
-
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... ? -
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)
endelsif @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)
endelsif @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 endelsif @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) endend
end#def
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