[Plugin] Mirror
-
on line 367
if UI.messagebox("Erase Original Selection ? ",MB_YESNO,"")==6
change the last number, 6, to 7
if UI.messagebox("Erase Original Selection ? ",MB_YESNO,"")==7
Now when you hit enter it will always be no
-
@krism said:
Tig,
Thank you for a most useful plugin. Is there a way to change a minor irritation for me? The default choice after mirroring is to erase the original part. Ninety percent of the time, I am copying & mirroring the part. I just erased my original part for the umpteenth time because I hit Enter too quickly. Not the end of the world but irritating nonetheless. Can I change the code to set the default button to NO.
Kris
Rich's solution reverses the result - but keeps the wording so answering Yes to the 'Erase Original...' prompt would NOT then erase it - that is plain silly see below on how to reword it AND reverse the result sensibly***The standard SketchUp dialog's default 'submit' button is 'Yes', it can't be changed...
I'd never hit 'enter', but instead train myself to use the Y and N keys - which chose Y-es and N-o...
You could reword the script to ask the opposite question "Keep Original ?" and then swap the results - but it will confuse others who might use your version!
The current setup also follows the old AutoCAD's Mirror tool which it sought to mimic, and which effectively asks' do you want to to delete the original' - but if you exit without answering Y/N it might take N ? ...***Edit the "Mirror.rb" script with a plain-text editor - like Notepad++ - and find line #355 and change
@msg = "Mirror: Erase Original Selection ?"
to read:
@msg = "Mirror: **Keep** Original Selection ?"
so that the stausbar prompt is in step...
Then go to line #367
if UI.messagebox("Erase Original Selection ? ",MB_YESNO,"")==6 ### 6=YES 7=NO
edit it to read:
if UI.messagebox("**Keep** Original Selection ? ",MB_YESNO,"")==**7** ### 6=YES 7=NO
which reverses the question and the result of Pressing 'Yes'...
For tidiness's sake also on line #369
else ### NO
change the rem note 'NO' after the ### to:
else ### **YES**
-
I was gonna tell the hack for completely removing that useless dialog but I thought my elegant answer left you with a wonderfully ironic question...
-
Tig & Rich,
Thanks for your replies. I will implement the "sensible" solution. No one else uses my computer so there is no opportunity for confusion from others. I checked my Autocad default for the mirror tool and it is set to No. I must have changed that sometime in the past as it is always like that for me.
Kris
-
Okay, works great. Thanks again.
Kris
-
Great tool, use it every day. Can't wait for the 2014 version.
-
TIG,
Thank you very much for posting this extension. Incredibly useful!
Best Wishes
Patrick. -
-
Yes, TIG has been diligently updating all his stuff. Thanks TIG!
-
@dave r said:
@pjb said:
Great tool, use it every day. Can't wait for the 2014 version.
Why are you waiting? It is already SU2014 compliant and it has been since December. See this.I could not find it in extension warehouse, so now i used a copy from SU2013 and put it in the plugin folder from SU2014. It works! thank you
-
NONE of my Plugins are in the EWH !
They are ALL in the SketchUcation PluginStore.
They should all be compliant with v2014.
You should NEVER copy ANY plugins across into v2014 from older installation of SketchUp. unless you cannot get a current version.
Most authors have updated their Plugins to be compatible with v2014, so you need to install the latest version. -
You should use the Plugin Store and or the SketchUcation Tools that will search and install plugins for you. Many authors here in the forums are not on the EWH.
-
-
Cuz he's SCF O-G Baby!
-
Fo' shizzle my Krizzle. It's the big T.I double gizzle.
-
lol
-
A "bit of a falling out" in the pre-EWH days... while SCF PluginStore was already being setup...
A loooooooooooong story...
I might forgive them one day -
Here's an updated v4.2, in the PluginStore http://sketchucation.com/pluginstore?pln=Mirror
I have adjusted the description in the tool's page to explicitly say it's PC & MAC compatible, for all SketchUp versions ! Some users were misunderstanding and assuming it was PC only !
I have also adjusted the script so that now it only installs the additional toggleWindows script [now loaded from .txt] and Win32API.so if the computer is a PC AND the SketchUp version is old [<v2014] - this workaround was introduced to sidestep rare Outliner crash issues, in older SketchUp versions on PCs. This is not needed for newer SketchUp versions, or on any MACs at all - so now if the files were previously installed they are now deleted to keep things tidy.
-
Mucho gracias
-
Great plugin. Thanks for the update. I use it quite often. Quite strange this function has never been added to the native SU tools.
Advertisement