edge bevel for workspace

free scripts, plugins, models, textures
Peter
Senior Chief Petty Officer
Posts: 170
Joined: 18 Apr 2010, 15:18
Type the number ten into the box: 0
Location: Texas

Re: edge bevel for workspace

Post by Peter »

Big improvement. Thanks a lot :bananathumb:
a day without orange juice is like... a day without orange juice
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: edge bevel for workspace

Post by clintonman »

Changed so the bevel offset can be smaller and is not allowed to go into negative values. This change came about because I beveled a small mesh and it turned into a mess that took a while to clean it up.
http://clintons3d.com/plugins/truespace ... bevel.html
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: edge bevel for workspace

Post by trueBlue »

Couple things I notice about your Edge Bevel
1.) Does not restore prior PE selection mode.
2.) Faucet normal is not set.
3.) Stray vertices.
4.) Error

I added a script at the end of the chain that fixes 1 & 2

Code: Select all

var RestorePEselectionMode = params.ConValue('RestorePEselectionMode');
MeshModifiers.AutofacetNormals('',-1)
Node.Value('/Preferences/Mesh Editor Settings','PE selection mode') = RestorePEselectionMode;
MeshModifiers.ActivatePointEditWidget('','','Default');
The RestorePEselectionMode attribute is hooked up to selectVertexMode, 2 - PEselectionMode attribute

With the stray vertices, I am able to fix it with the Heal command.
Not sure how to add that function.

4.) Error
Edge Bevel error.PNG
Edge Bevel error.PNG (10.71 KiB) Viewed 3091 times
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: edge bevel for workspace

Post by clintonman »

4.) It's difficult to fix an error without steps to reproduce it or some kind of sample.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: edge bevel for workspace

Post by trueBlue »

Not sure of the steps needed to produce the error.
Adding var to found seems to be the solution though
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: edge bevel for workspace

Post by clintonman »

Update July 12, 2021

updated from changes in the unofficial update version of the script.

bevel preview is more reliable and it works, seems to have gotten broken at some point in time
does not clear undo history until after the tool is run
cleaned up - removed a lot of unused/unneeded code


http://clintons3d.com/plugins/truespace ... bevel.html
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: edge bevel for workspace

Post by clintonman »

A bug found by trueBlue.
You can't reset the offset unless you have a point edit selection.

I looked at it and thought, "Wow, I have no idea how to fix it" Then I notice that the bevel preview doesn't account for starting the tool with no selection. So I add a timer so it can tell the difference between no selection at all and a mysterious no selection because an undo didn't run properly.
then I go back to the original problem and it's fixed :roll: :)

I'll attach the change here for easy testing before updating the installer.
Attachments
trueBevel.RsObj
(92.35 KiB) Downloaded 120 times
Clinton Reese

http://clintons3d.com
Post Reply