Window / Preferences / Extensions
-
Why doesn't appear all of the scripts and plugins in the field Window / Preferences / Extensions? Which parameter does need to be included inside of the script so that it can be activated or disable in the field Window / Preferences / Extensions?
Would it be possible to create keyboard shortcuts to activate or to disable scripts that appear in the field Window / Preferences / Extensions?
It would be great if all of the plugins that we needed were loaded ON DEMAND for keyboard shortcuts. -
@bagatelo said:
Why doesn't appear all of the scripts and plugins in the field Window / Preferences / Extensions? Which parameter does need to be included inside of the script so that it can be activated or disable in the field Window / Preferences / Extensions?
Would it be possible to create keyboard shortcuts to activate or to disable scripts that appear in the field Window / Preferences / Extensions?
It would be great if all of the plugins that we needed were loaded ON DEMAND for keyboard shortcuts.You can make any plugin as an 'extension' and register it as such, then the user has to choose to make it active. Once that's done it's active thereafter until you deactivate it and you have to restart SUp - so it doesn't remove it from menus etc immediately - also chopping and changing toolbars can cause chaos as we know...
I never make any of my plugins as 'extensions' - frankly I don't think it's worth the hassle - if users doesn't want my tools they just need to remove the file(s) from the Plugins folder or rename them with a .txt suffix... so they stop auto-loading.
There is no way to remove a plugin from menus, toolbars etc once it's been activated that session even if it were an 'extension', as deactivating an 'extension' only works at the next start of SUp - just like relocating/renaming a .rb file so it won't load in the future has no immediate affect as it's already loaded.............
-
I know we cannot unload plugins, but only load them. I think about something never load all plugins automatic, but load plugins by keyboard shortcuts. I don't like to rename plugins extensions to not load or load. I think is more intelligent if we can control ALL plugins in Window / Preferences / Extensions.
-
So to précis... you want every plugin to become an extension... so that users can switch them off/on ???
-
As you wish
-
Yes, I agree. Load as needed is better. It is not such a big trouble to reboot SketchUp to reset the tools. When only a few are loaded at a time, the toolbars can be managed.
One thing I don't like is:
Much better to have a new, longer list.
But we can't read or write the Extensions registry keys, so a completely separate system would need designed.
-
I try to change scripts to show in Window / Preferences / Extensions the possibility to load or not load when Sketchup stars, but, in some cases, appears two times in that field. Why this is happen?
-
What I need to insert within the code of each plugin that causes the plugin to appear within each of the configuration window "Window / Preferences / Extensions"?
-
Hi,
Below is an example of one of my extensions:require 'extensions.rb' require 'LangHandler.rb' # Extension Manager $uStrings = LanguageHandler.new("Layer Manager") Layer_Manager_Extension = SketchupExtension.new("Layer Manager", "Layer Manager/fr_layer_manager_v5.rb") Layer_Manager_Extension.description="Plugin description goes here") Layer_Manager_Extension.name= "Layer Manager" Layer_Manager_Extension.creator = "Didier Bur" Layer_Manager_Extension.copyright = "11.2005, CRAI - Didier Bur" Layer_Manager_Extension.version = "1.0 for SU v5" Sketchup.register_extension Layer_Manager_Extension, true
Advertisement