Re: [Plugin] Another Mirror Ruby
-
Please remove one of your duplicated posts - one is more than long enough ! [done, thanks]
Also, please put long bits of code inside a code/code-block - it keeps its formating and is easier to read/copy.Your toolbar/menu part works fine for me - so you must have edited something else within the main text ???
Just copy your new part [below '###menus###...'] and then paste it over the equivalent section in a copy of the original script - it should then work...
Note that the last version is 3.1...Are you picking suitable axes, points to actually give a 'mirror' ?
-
@tig said:
Please remove one of your duplicated posts - one is more than long enough ! [done, thanks]
Also, please put long bits of code inside a code/code-block - it keeps its formating and is easier to read/copy.Your toolbar/menu part works fine for me - so you must have edited something else within the main text ???
Just copy your new part [below '###menus###...'] and then paste it over the equivalent section in a copy of the original script - it should then work...
Note that the last version is 3.1...Are you picking suitable axes, points to actually give a 'mirror' ?
yeah i'm picking the right axes, points to give a mirror.... only to find nothing...
uh.... TIG I know zilch about ruby... I just followed the instructions given on the forum to modify my mirror plugin... but nothin' happened... I'm unable to understand the instructions that ur givin' on this post. Is it necessary that I keep the old mirror ruby in my folder as well as the new one... i.e. 2 ruby files for mirror in my plugins folder??
-
You only need one 'version' of the script.
It is a self-contained file with everything it needs inside it [unless of course it's the toolbar version which then needs the button's image file too]Temporarily remove one of the scripts and see if the other one works...
Also try opening the Ruby Console [Windows Menu] and type in [or easier copy/paste it]Sketchup.active_model.select_tool(MirrorTool.new)
then
<enter>
key.Does the mirror tool then work or print an error etc ?
Do you get prompted for the axes etc ?
What does the Ruby Console say when you run the tool in the four available ways - from Plugins Menu, Toolbar, Right-click Context-Menu and Typing in the command as above ?Do you pick three discrete points that form something to mirror about - say one point on the group and then a point on the green axis and one on then blue axis ? You should then get a copy made and a request to keep/erase the original...
-
@tig said:
You only need one 'version' of the script.
It is a self-contained file with everything it needs inside it [unless of course it's the toolbar version which then needs the button's image file too]Temporarily remove one of the scripts and see if the other one works...
Also try opening the Ruby Console [Windows Menu] and type in [or easier copy/paste it]Sketchup.active_model.select_tool(MirrorTool.new)
- <enter> key.
Does the mirror tool then work or print an error etc ?
No ... it doesn't ....My older version of mirror plugin works just fine [i haven't tweaked it for the icon]... ..Can you upload your tweaked mirror script [ the one that uses the icon]so that i can use it????
and... one more question..... I don't know ruby... is there a standard string that can be added to a ruby script so that i can make its custom toolbar or buttons work...??? I really hate scrolling through the plugins menu to get the one i want to use...
-
See my edited post...
Have you removed the 'working version' and retried in case they are clashing ?
I actually don't have a toolbar version as I always use a shortcut key to run it. -
@tig said:
See my edited post...
Have you removed the 'working version' and retried in case they are clashing ?
I actually don't have a toolbar version as I always use a shortcut key to run it.Yeah... i've removed my 'workin version' and retried ....... the problem persists....
Actually this is what happening...
The objects that i want to mirror get recreated as a group on the spot itself. suppose i have a cube and next to it a sphere is there....
i select the sphere and cube using the shift key...
next i click on mirror button
next... i draw a line along green axis
now... i draw my path across blue axis...
..... the two objects get grouped together on the spot...
i can't seem to figure out the problem
-
It groups them to do the mirroring then explodes the group back as it was - if it's working...
I have decided I will add the tool button to the script for you and ensure it's working, then post it.
Can you post the .png button image for me please...
EDIT: no need I found it... -
Here's v3.2 with the toolbar option added.
Otherwise the script's workings are unchanged.
It's been fully tested and works when activated from the Menu, the Context-Menu, a Shortcut or the new Toolbar.
If the MI.png file is not found with the .rb file then the toolbar is NOT made.
You can activate this new 'Mirror' toolbar from View>Toolbars.
Put these 2 files into 'Plugins' - you can omit MI.png [or rename] it if you don't want a toolbar.Mirror.rb
EDIT: NOTE THAT THE LATEST VERSION IS NOW AVAILABLE HERE http://forums.sketchucation.com/viewtopic.php?p=276512#p276512 -
I think a variant of the Mirror Plugin, should consider creating a toolbar with 3 buttons: each one would perform the mirror simmetrically to one of the axis, asking before the operation to click on the plane to define the start of the mirror line.
It would work similarly to rot90 plugin, but for the mirror.
I hate myself for not being able to code, otherwise I'd do it myself!
-
Thank you very much, a basic tool and very useful!
-
Thank you...works great, once I figured out to "right-click.save as" the image.
-
Thanks for the script. However, I get a Bug Splat when I do not erase the original. I do not have this problem with SU 6. I'm running SU7.
-
Bugsplat with Outliner open! SU7.
-
I'm getting the bugsplat as well and I'm using Su6. It worked fine before. But not working these days?
It occurs when answering "no" to erase original. BUGSPLAT! everytime. -
There error occurs with all three scrpits that I have: mirror 3[1].0rb , mirror2.8.rb and mirror.rb.
I tested each one while temporarily renaming the others and each one failed with a bugsplat.
Might there be conflicts with some other script(s)? -
Can the Bugsplat when Outliner is open be fixed? I always forget about this and crash SketchUP!
-
You have to 'roll-up' the Outliner window to avoid a splat - it's a known issue with Sketchup itself... not any tool per se... You should never use any tool that makes and deletes instances in succession with the Outliner 'rolled-down'...
I have posted an updated version here http://forums.sketchucation.com/viewtopic.php?p=276512#p276512Don't worry about the 'group.make_unique is deprecated...' error messages - it's a known mistake in the API error reporting, and Thomthom has been pressing to get it removed - you DO need to use
group.make_unique
in some circumstances... -
I see - thanks TIG!
-
and the great autocad mirror comes to sketchup!!! whoa..yippee!!
Advertisement