[Plugin] VisTools
-
Thanks Dana, Look forward to seeing what you come up with.
-
@simon le bon said:
Page 2:
@unknownuser said:
Utilities](http://sketchucation.com/forums/viewtopic.php?f) (renamed VisTools)":2wizqn62]Version 2.x is coming .....
... We are then gone back to the first post of this present threadSimon,
I suppose you are asking the question "What happened to FreezeTools v2.0 ?"(1) FreezeTools must be thought of as an experimental code fork of the original, that was never released.
(2) Some organizational ideas for the code were used by Dana in the VisTools v1.1 (or v1.0.1 ?) release.
I am guessing that I had made the codebase for FreezeTools much too complex, in too many files. Again (guessing,) I think Dana did not have the time to test it, but needed to update the original, and decided to keep the update as simple as possible, still in one file, and include only the most important revisions, which were the name change to VisTools, and wrapping the code within his new
IntrepidBear
module namespace.And probably, that was the correct decision. (I think I got carried away, and broke the code up into far too many files. Also, I likely introduced too many changes all at once. It is better to do changes in smaller increments, for debugging, and just in case that "fork" must be rolled back if it does not work out.)
But... since VisTools still needed an update to correct the multi-model situation on Mac, I said to myself,
"Why waste the work I and others did creating the language strings for FreezeTools?"I still have all those language hash files, so I used the language strings, but in a slightly different way. (I no longer read the file as a hash literal into a string object, and then
eval()
it. I just let the interpreter use the language file via theload()
method.)SO .... this really is where we should be.
Version
%(#000000)[1.2.0]
is just a small incremental change that adds multi-model support, and loads localized language strings for the menus, toolbar, and tooltips. -
Issue #15 - Feedback needed:
Should commands that change entity states (hide, show, isolate, unfreeze & freeze,) touch entities that are already on hidden layers?
Currently there is no test for this, and commands just change the states without testing if the entity is on a layer that is not displayed.
Should we:
(1) avoid changing entity states when the entity is already hidden by virtue of it's layer ?
or
(2) provide a toggle (both menu item and toolbar button,) to ignore hidden layers ?
-
Issue #13 - Feedback needed:
The hide_entities() and isolate_entities() commands can unexpectedly cause freezing.
If the entity is a group or component, and it is already locked, but not hidden, the above commands will cause freezing, by making them both hidden and locked. (Ie, there is no test to determine if the entity is a locked group or component.)
This may be unexpected by the user. A subsequent show_all command will not then make everything that was hidden become visible again.
Is this kind of freezing desired ?? ... or should these commands be changed to avoid causing freezing ?
-
Issue #12 - Feedback needed.
Should the show_all() command be separated into a show_all_layers() and show_all_groups_and_components() command ??
Reasoning: The layers are not tested for freezing (because they cannot be locked,) but the groups and components are tested for freezing.
-
Issue #11 - Feedback needed:
The command methods show_all() and unfreeze_all() only work upon the model level entities collection.
Should these instead iterate the definitions collection, and their instances collections, in order to act upon groups and components at ANY level, top or nested ??
-
Dan, you're at it again
You're correct in guessing that I was daunted by your changes, I appreciate you're understanding and your time.
As you may have noticed, we've made the decision of closing down ExtendSketchUp and in turn I won't be doing any work on SketchUp plugins in the foreseeable future. Please feel free to use my code in any way you choose and I hope some of it becomes useful. Sorry to be disappearing but I don't use SketchUp much these days and don't feel I can adequately support any plugins at this time.
Cheers!
-
UPDATE v1.3.3
Added Asian language support:
-
Chinese Simplified (zh-CN) language support by Xiao Long (guanjin)
-
Other Asian language support files (preliminary):
-
Chinese Traditional (zh-TW)
-
Japanese (ja)
-
Korean (ko)
THANK YOU to :
- Xiao Long (guanjin)
Chinese Simplified (zh-CN) language file.
Pushed update into a forked GitHub online repository at:
https://github.com/DanRathbun/sketchup-vistoolsFeedback via: https://github.com/DanRathbun/sketchup-vistools/issues
-
-
UPDATE v1.3.2
Pushed update into a forked GitHub online repository at:
https://github.com/DanRathbun/sketchup-vistoolsFeedback via: https://github.com/DanRathbun/sketchup-vistools/issues
-
[Plugin] VisTools v1.2.1 ready for testing
-
[Plugin] VisTools v1.2.0 ready for testing
-
[Plugin] VisTools v1.3.0 ready for testing
-
Issue: Toolbar button ordinal positions
ADD: Issue filed for milestone 1.3.1, and fix has been done.
-
UPDATE v1.3.1
Pushed update into a forked GitHub online repository at:
https://github.com/DanRathbun/sketchup-vistoolsFeedback via: https://github.com/DanRathbun/sketchup-vistools/issues
-
Hi ishboo, the plugin is great but unfortunately "isolate selected layers", "isolate selected entities" and "freeze" and "unfreeze" does work."Hide selected layers" and "show all layers and entities" work perfectly. I formerly used the hide tool within the SCF selector toolbar but unfortunately this toolbar is not available fro SU 2014. I work with SU 2014. Can you help?
-
This has not been tested under SU2013 nor SU2014.
WHAT commands DO NOT work ????
-
@dan rathbun said:
UPDATE v1.3.3
Added Asian language support:
-
Chinese Simplified (zh-CN) language support by Xiao Long (guanjin)
-
Other Asian language support files (preliminary):
-
Chinese Traditional (zh-TW)
-
Japanese (ja)
-
Korean (ko)
THANK YOU to :
- Xiao Long (guanjin)
Chinese Simplified (zh-CN) language file.
Pushed update into a forked GitHub online repository at:
https://github.com/DanRathbun/sketchup-vistoolsFeedback via: https://github.com/DanRathbun/sketchup-vistools/issues
what, I didn't know you speak korean Dan.
I don't mind helping out the language review, but I want to avoid installing another version of SketchUp in Korean -
-
@josephkim626 said:
what, I didn't know you speak korean Dan.
I don't. I used Google Translator and Bing Translator. I have no idea if my translations are cussing a ppl, or not.
@josephkim626 said:
I don't mind helping out the language review, but I want to avoid installing another version of SketchUp in Korean.
You can load the files in a code editor.
I use Notepad++ on Windows.
The files must be saved in UTF-8 encoding.The Vistools loader ruby in the "Plugins" folder has the descriptions in it, and the korean setting is this:
@@plugin.description = %q{VisTools:(๋น์ ๋๊ตฌ) ๋ช ๊ฐ์ง ์ ์ฉํ ์ํฐํฐ๋ฅผ ์ถ๊ฐ ํ ๊ณ ํ์ ๋๊ตฌ์ Sketchup ์์ ๋ ์ด์ด: ์จ๊ธฐ๊ธฐ, ํ์, ๋๊ฒฐ ๋ฐ ํด ๋}
In the plugins' folder is a "
VisTools_ko.rb
" file with the other UI strings which looks like:# encoding; UTF-8 # # THIS FILE MUST BE SAVED IN ENCODING; "UTF-8 WITHOUT BOM" # module IntrepidBear # <--<< Dana Woodman's proprietary toplevel namespace module VisTools # <--<< THIS plugin's nested namespace #{# MODULE VARIABLE LANGUAGE HASHES # # --==== KOREAN ====-- # @@menutext = Hash[ ;plugin_name, "๋น์ ๋๊ตฌ", # ;hide_layers, "๋ ์ด์ด ์จ๊ธฐ๊ธฐ", ;isolate_layers, "๋ถ๋ฆฌ ๋ ์ด์ด", ;hide_entities, "์ํฐํฐ ์จ๊ธฐ๊ธฐ", ;isolate_entities, "์ํฐํฐ๋ฅผ ๋ถ๋ฆฌ", ;freeze_entities, "๊ณ ์ ๊ทธ๋ฃน ๋ฐ ๊ตฌ์ฑ ์์", ;unfreeze_all, "๊ณ ์ ์ทจ์ ๋ชจ๋", ;show_all, "๋ชจ๋ ํ์", # ;debug_mode, "๋๋ฒ๊ทธ ๋ชจ๋" ] @@tooltips = Hash[ ;hide_layers, "์ ํํ ๋ ์ด์ด ์จ๊ธฐ๊ธฐ", ;isolate_layers, "์ ํ ๋ ๋๋ฉด์ธต ๋ถ๋ฆฌ", ;hide_entities, "์ ํํ ์ํฐํฐ ์จ๊ธฐ๊ธฐ", ;isolate_entities, "์ ํ ๋ ์ํฐํฐ๊ฐ ๋ถ๋ฆฌ", ;freeze_entities, "๊ทธ๋ฃน ๋ฐ ๊ตฌ์ฑ ์์ ๋๊ฒฐ", ;unfreeze_all, "๋ชจ๋ ๊ณ ์ ์ทจ์", ;show_all, "๋ชจ๋ ๋ ์ด์ด ๋ฐ ์ํฐํฐ ๋ณด๊ธฐ" ] # #}# end # module VisTools end # module IntrepidBear
-
@@plugin.description = %q{VisTools:(VisTools) ์ค์ผ์น์ ์ ๋ ์ด์ด์ ๊ฐ์ฒด ์ ์ด๋ฅผ ๋๋ ์จ๊ธฐ๊ธฐ, ํ์, ๋๊ฒฐ ๋ฐ ํด๋ ๋ฑ์ ๊ธฐ๋ฅ์ ์ถ๊ฐ.}
@@menutext = Hash[
:plugin_name, "Vistools",
#
:hide_layers, "๋ ์ด์ด ์จ๊น",
:isolate_layers, "๋ ์ด์ด ๋ถ๋ฆฌ",
:hide_entities, "๊ฐ์ฒด ์จ๊น",
:isolate_entities, "๊ฐ์ฒด ๋ถ๋ฆฌ",
:freeze_entities, "๊ฐ์ฒด ๋๊ฒฐ",
:unfreeze_all, "๋ชจ๋ ๋ ์ด์ด ๋ฐ ๊ฐ์ฒด ํด๋",
:show_all, "๋ชจ๋ ๋ ์ด์ด ๋ฐ ๊ฐ์ฒด ํ์",
#
:debug_mode, "๋๋ฒ๊ทธ ๋ชจ๋"
]@@tooltips = Hash[ :hide_layers, "์ ํ ๋ ๋ ์ด์ด ์จ๊ธฐ๊ธฐ", :isolate_layers, "์ ํ ๋ ๋ ์ด์ด ๋ถ๋ฆฌ", :hide_entities, "์ ํ ๋ ๊ฐ์ฒด ์จ๊น", :isolate_entities, "์ ํ ๋ ๊ฐ์ฒด ๋ถ๋ฆฌ", :freeze_entities, "์ ํ ๋ ๊ฐ์ฒด ๋๊ฒฐ", :unfreeze_all, "๋ชจ๋ ๋ ์ด์ด ๋ฐ ๊ฐ์ฒด ํด๋", :show_all, "๋ชจ๋ ๋ ์ด์ด ๋ฐ ๊ฐ์ฒด ํ์" ] # #}#
Above is the parts of the code that you have included perhaps better explains your plugin.
I have short experience in translating programs/documents. I think this would do.The description of Vistools didn't really mean anything as the sentences were in shuffled order. I've kept the name in English as I am not sure direct translation really gives you any benefit.
Just so you know, you didn't really offend anyone
@dan rathbun said:
The Vistools loader ruby in the "Plugins" folder has the descriptions in it, and the korean setting is this:
@@plugin.description = %q{VisTools:(๋น์ ๋๊ตฌ) ๋ช ๊ฐ์ง ์ ์ฉํ ์ํฐํฐ๋ฅผ ์ถ๊ฐ ํ ๊ณ ํ์ ๋๊ตฌ์ Sketchup ์์ ๋ ์ด์ด: ์จ๊ธฐ๊ธฐ, ํ์, ๋๊ฒฐ ๋ฐ ํด ๋}
In the plugins' folder is a "
VisTools_ko.rb
" file with the other UI strings which looks like:# encoding; UTF-8 > # > # THIS FILE MUST BE SAVED IN ENCODING; "UTF-8 WITHOUT BOM" > # > module IntrepidBear # <--<< Dana Woodman's proprietary toplevel namespace > > module VisTools # <--<< THIS plugin's nested namespace > > #{# MODULE VARIABLE LANGUAGE HASHES > # > # --==== KOREAN ====-- # > > @@menutext = Hash[ > ;plugin_name, "๋น์ ๋๊ตฌ", > # > ;hide_layers, "๋ ์ด์ด ์จ๊ธฐ๊ธฐ", > ;isolate_layers, "๋ถ๋ฆฌ ๋ ์ด์ด", > ;hide_entities, "์ํฐํฐ ์จ๊ธฐ๊ธฐ", > ;isolate_entities, "์ํฐํฐ๋ฅผ ๋ถ๋ฆฌ", > ;freeze_entities, "๊ณ ์ ๊ทธ๋ฃน ๋ฐ ๊ตฌ์ฑ ์์", > ;unfreeze_all, "๊ณ ์ ์ทจ์ ๋ชจ๋", > ;show_all, "๋ชจ๋ ํ์", > # > ;debug_mode, "๋๋ฒ๊ทธ ๋ชจ๋" > ] > > @@tooltips = Hash[ > ;hide_layers, "์ ํํ ๋ ์ด์ด ์จ๊ธฐ๊ธฐ", > ;isolate_layers, "์ ํ ๋ ๋๋ฉด์ธต ๋ถ๋ฆฌ", > ;hide_entities, "์ ํํ ์ํฐํฐ ์จ๊ธฐ๊ธฐ", > ;isolate_entities, "์ ํ ๋ ์ํฐํฐ๊ฐ ๋ถ๋ฆฌ", > ;freeze_entities, "๊ทธ๋ฃน ๋ฐ ๊ตฌ์ฑ ์์ ๋๊ฒฐ", > ;unfreeze_all, "๋ชจ๋ ๊ณ ์ ์ทจ์", > ;show_all, "๋ชจ๋ ๋ ์ด์ด ๋ฐ ์ํฐํฐ ๋ณด๊ธฐ" > ] > # > #}# > > end # module VisTools > > end # module IntrepidBear
-
@josephkim626 said:
Above is the parts of the code that you have included perhaps better explains your plugin.
I have short experience in translating programs/documents. I think this would do.The description of Vistools didn't really mean anything as the sentences were in shuffled order. I've kept the name in English as I am not sure direct translation really gives you any benefit.
Just so you know, you didn't really offend anyone
Okay, thank you Joseph. You have been entered in the halls of VisTools fame !
The patch RBZ for your Korean language strings has been posted in the OP of this thread:
http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=49662%26amp;p=446865#p446865
You just install it in the normal manner, and it should overwrite the old "VisTools_ko.rb" file.You need to restart SketchUp to load the new strings.
Advertisement