[Plugin] Mirror
-
@tig said:
sents=[] > ss.each{|e|sents.push(e)} > copy_group=Sketchup.active_model.active_entities.add_group(sents) > group_miner(copy_group.entities)###v3.1 > new_group=copy_group.copy > group_miner(new_group.entities)###v3.1 > ... >
The last line is #266.
It seems that there is nothing in the selection to copy... BUT if there is nothing then an earlier part of the code should trap it with an error, staring at line #109
> def activate > ###Sketchup.send_action("showRubyPanel;") > self.reset() > ss=Sketchup.active_model.selection > if ss.empty? > Sketchup;;set_status_text("Mirror; NO Selection !")### > UI.messagebox("Select Something BEFORE Using the Mirror Tool.")###v2.8 > Sketchup.send_action("selectSelectionTool;") > return nil > end > ... >
Have you messed up the code with the translation ?
I haven't done changes in the code only i have translated the UI.messagebox and the text of the popups windows, i have probe with the mirror 3.3 original version (english) and don't works too.
I don't know if there is a conflict with others plugins. -
Can you try it with the 'Ruby Console' open and post all error messages...
This is a puzzle... -
I have found the error!
There is a conflict with SketchyPhisics 3.1, remember i work on Mac OSX.
Excuse me, it not was a problem in the plugin there were a conflict.
Thanks TIGĀ”Ā” -
It's no problem for me! Now it's no problem for you!
Ā”No hay problema para mĆ! Ā”Ahora no es problema para ti! -
@oxer said:
I have found the error!
There is a conflict with SketchyPhisics 3.1, remember i work on Mac OSX.
Excuse me, it not was a problem in the plugin there were a conflict.
Thanks TIGĀ”Ā”i use windows XP SP3, and i noticed also a conflict between Mirror and Sketchyphysics3
too bad, we'll have to choose between 2 excellent plugins...
-
@oxer said:
I have found the error!
There is a conflict with SketchyPhisics 3.1, remember i work on Mac OSX.
Excuse me, it not was a problem in the plugin there were a conflict.
Thanks TIGĀ”Ā”Is there a solution to solve this conflict?
-
Here's v3.4 with some more code tweaks that might stop bugs...
http://forums.sketchucation.com/viewtopic.php?p=276512#p276512 -
TIG
I know this is an operator error. I have noticed if you press the delete key instead of the return, the plugin crashes. Is there a way to capture the delete key so it will not crash Sketchup.
Yes, I know I should be more careful.
Thank you for your plugin
Ken
-
tig thanks for this new update.
but unfortunately continues to generate bugplat when ouliner window this open, and make mirror for a group or component.use sketchup 8, windows xp sp3
-
@diego-rodriguez said:
tig thanks for this new update.
but unfortunately continues to generate bugplat when ouliner window this open, and make mirror for a group or component.use sketchup 8, windows xp sp3
It should roll up the Outliner in Windows ?
-
TIG
I have replaced an archaic version of the Mirror tool with your new one and see that the right mouse context choice is now gone and only the icon in the toolbar is there. Could you please re-intoduce the necessary lines in the code to enable it to appear in the context menu....
Sorry but i am a creature of habit and the use of the icon interrupts my usual workflow...
Thanks in advance.
Dave
-
@davidlouis said:
TIG
I have replaced an archaic version of the Mirror tool with your new one and see that the right mouse context choice is now gone and only the icon in the toolbar is there. Could you please re-introduce the necessary lines in the code to enable it to appear in the context menu....
Sorry but i am a creature of habit and the use of the icon interrupts my usual workflow...
Thanks in advance.
DaveSorry about that...
I disabled it temporarily whilst I was doing something else!
Here's v3.5 that has it reintroduced...
http://forums.sketchucation.com/viewtopic.php?p=276512#p276512
-
thanks for sharing a great plugins like this sir,..
-
Tig: Thanks for that gift so beautiful. I'm using a lot and it works well.
-
thanks for your sharing
-
@TIG: Could you make some loader for this ? I would like to have a folder with "MI.png, Mirror.rb and toggleWindows.rb" and a Mirror_loader.rb (or similar). Win32API.so I thinks it's best to stay in Plugins folder, as it is used by more plugins.
Thanks a lot.
-
@unknownuser said:
@TIG: Could you make some loader for this ? I would like to have a folder with "MI.png, Mirror.rb and toggleWindows.rb" and a Mirror_loader.rb (or similar). Win32API.so I thinks it's best to stay in Plugins folder, as it is used by more plugins.
Thanks a lot.
If you want to move files you need to rewrite the menu/toolbar part of their code to ensure the files are found in the new sub-folder.
A loader is a simply a file in the ../Plugins/ folder called perhapsmyloader.rb
containing this line of code
load "mysubfolder/myscript.rb"
The line can be repeated for multiple files to be loaded...
Wheremysubfolder
is a folder in ../Plugins/ containing the scriptmyscript.rb
that you want loading... -
Today I noticed when I mirror a component the mirrored copy gets "Scale definition" active. When click to reset it rotates 180 degree, when choose to scale the original now gets "Scale definition"?
-
@dedmin said:
Today I noticed when I mirror a component the mirrored copy gets "Scale definition" active. When click to reset it rotates 180 degree, when choose to scale the original now gets "Scale definition"?
The component instance will be scaled '-1' in the selected direction[s]. Resetting the scale should revert to the original scaling...
-
And may be this is the cause of my troubles with the components getting unique! I did a lot of models with the Mirror Selection - now I just copied instead of mirror and components don't convert to unique!
Advertisement