MoI discussion forum
MoI discussion forum

Full Version: Make a hole smaller or bigger

From: r2d3
1 Nov 2019   [#1]
I just stumbled over a script i made long ago..
Sometimes you have the problem that you made a hole only to find out that its to big than its a lot of work to redraw the object.
This script can help:

This hole is to big:


Select al faces of the hole and choose the basepoint (normaly the center ):


You get a cutting tool:


Change the diameter of the tool, perhaps stretch it:


And you have your smaller hole:


Have fun

Attachments:
_ChangeHole.htm
_ChangeHole.js

Image Attachments:
2019.11.01-14.36.41-[3D].png  2019.11.01-14.37.49-[3D].png  2019.11.01-14.38.19-[3D].png  2019.11.01-14.39.16-[3D].png  2019.11.01-14.46.29-[3D].png 


From: Frenchy Pilou (PILOU)
1 Nov 2019   [#2] In reply to [#1]
Fantastic! (if that works! )

You can't move it ? (the all hole...this will be cool)

That works! (not the all hole move) :)
It's to user to make the last Diff and kill the overage?
From: r2d3
1 Nov 2019   [#3] In reply to [#2]
>You can't move it ? (the all hole...this will be cool)

Switch on "Keep Tool" and you can move the tool
From: Frenchy Pilou (PILOU)
1 Nov 2019   [#4] In reply to [#3]
Ah yes cool! :)



and for any forms! Bravo! A very cool script !!!


From: Mik (MIKULAS)
1 Nov 2019   [#5] In reply to [#4]
Excellent script!
Thanks for sharing.
Mik
From: Frenchy Pilou (PILOU)
1 Nov 2019   [#6]
@r2d3

Can you give a name to the "future new hole(s)" inside your code for an easy selection for make the last Diff ?

and cool your plugin is "multiple! (we can take many different holes in the same time! )


From: Frenchy Pilou (PILOU)
1 Nov 2019   [#7]
Here the French version! ;)
http://moiscript.weebly.com/r2d3.html
From: r2d3
2 Nov 2019   [#8] In reply to [#6]
>Can you give a name to the "future new hole(s)" inside your code for an easy selection for make the last Diff ?

Yes! :-)

Attachments:
_ChangeHole.htm
_ChangeHole.js


From: Frenchy Pilou (PILOU)
2 Nov 2019   [#9] In reply to [#8]
Not yet tested but sure that will be excellent!
Merci!
From: christian (CHRI)
2 Nov 2019   [#10] In reply to [#9]
Works fine

Many many Thanks to r2d3 and PILOU
From: Frenchy Pilou (PILOU)
2 Nov 2019   [#11]
Tested the new "Name": works like a charm!

Only little disturb about the all command: undo is not completly supported!

But it's yet a wonderful task!

PS You can "Copy" the "Hole Tool" anywhere you want before the last Diff ;)
Here the Hexagon on the Right is the final result of a move &/or scale of an original
You can easily Select by its name "Hole Tool" in the Browser Object by a Right Click
Now it is copyied 2 times on the Left!
Then the Last Boolean Diff can be made! (not supported by the command but it's not a big deal :)

And you can copy any separate hole (at the end they will have the same name so easy to select them!



So a new French version! ;)
http://moiscript.weebly.com/r2d3.html
From: Frenchy Pilou (PILOU)
4 Nov 2019   [#12]
@r2d3
Seems your wonderful prog don't works for wavy volumes ?

Have you some tricks or future ideas for that ?

Now it's the big manually DIY work! :)


From: r2d3
4 Nov 2019   [#13] In reply to [#12]
>>Seems your wonderful prog don't works for wavy volumes ?
This script relays on MOIs "SelfHealing" capabilities. Holes on curved or splited faces can't be selfhealed.

>>Have you some tricks or future ideas for that ?
Need for Moments of Inspiration...

>>Now it's the big manually DIY work! :)
Have fun! ;-)
From: r2d3
4 Nov 2019   [#14] In reply to [#11]
>>Only little disturb about the all command: undo is not completly supported!

YES thats right...

@Michael Gibson > Do you have an idea ???
From: Michael Gibson
4 Nov 2019   [#15] In reply to [#14]
Hi Ralf,

re:
> @Michael Gibson > Do you have an idea ???

I think that having an object that's created and then also deleted within the same command can mess up the automatic undo tracking.

- Michael