[Plugin] !AdditionalPluginFolders - v5.4a - 27 Sep 20
-
@tig said:
All that Fredo's tool does is let the user specify the folder path that's to be added to the load paths in a dialog: admittedly that may well fall foul of access rights, but it would be easy enough to recast it with a fixed path hard coded into the script, based on a folder that is accessible to the user... That way your IT-guys only need add one tiny .rb file to Plugins to adjust the list of folders used for loading scripts... and you are sorted AND no permissions need changing at all... Everyone stays happy
TIG,
Thanks for the clarification. It is indeed up to each user to specify the right path (either a local drive or a network drive with full access rights). For massive setup of this path (say for 40 machines or so), the code would have to be tweaked in several places however (currently the paths are stored in the SU Registry).
Fredo
-
The user might be prevented from writing to the Registry at all [although on a current-user basis it is 'personal' to that user's login anyway...]... so then the alternative of a hard-coded version is needed, which is OK as long as the specified folder always exists on every PC and it is fully accessible to every user...
-
I keep trying to download it but when I try to click on the download link, it logs me out . I get the following error "You are not authorised to download this attachment". It even happens when I'm already logged in. Is there a way to fix it?
@unknownuser said:
000RedirectPlugins is a small standalone script providing the capability to define an additional user-defined directory to load plugins in Sketchup.
This can be useful in some situations, such as:
- Restricted access to System folder (C:\program files...) without administrator rights
- Sharing plugins across different versions of Sketchup
- Sharing plugins amongst users on a network
The plugin adds a menu in Sketchup Windows > Plugin Additional Directory. This command pops up a dialog box where you can enter the path of an additional directory where Sketchup should load the plugin from, in addition to the default directories used by Sketchup.
[attachment=1:c9l41n07]<!-- ia1 -->000RedirectPlugins - Dialog.jpg<!-- ia1 -->[/attachment:c9l41n07]
The additional directory is stored across SU Sessions. So you will do it once for all**IMPORTANT:
-
Plugins will be loaded first from the additional directory and then from the SU standard plugin folders(/Plugins and /Tools). So you don’t need that all plugins reside in the additional directory.
-
Some plugins do NOT work when loaded from a directory which is not the standard SU plugins directory. However, most new plugins should normally be OK. You can leave these plugins in the Sketchup…/Plugins folder, and they will be loaded.
-
000RedirectPlugins.rb is totally independent from LibFredo6. You don’t need to have LibFredo6 installed and it applies to any plugin.
-
000Redirect.rb does not make any particular assumption on the plugins structure or installation. Just make sure that you have the same footprint in the additional directory as you would have in the standard SU plugins folder.
-
000RedirectPlugins.rb allows defining several additional directories (paths must be separated by a semicolumn) but you should try to limit this number for performance reasons.
-
It is indeed advised that plugins resides in either the additional directory or in the standard Plugins folder of Sketchup, but not in both.**
No user manual (see section Quick Startbelow)
- Language: English and French
- Menus: by default, it is installed in Windows > Plugins Additional Directory
- Icon toolbar: No icon provided
- The plugin is free, for private and commercial usage.
Download and drop the attached 000RedirectPlugins.rb file into the SU Plugins directory (it MUST be in the SU Plugins directory)
On Mac the SU plugin directory should be:
Macintosh HD/Library/Application Support/Google SketchUp 7/SketchUp/plugins000RedirectPlugins.rb – 30 Jul 11 - 08:45 CET
[attachment=0:c9l41n07]<!-- ia0 -->000_RedirectPlugins.rb<!-- ia0 -->[/attachment:c9l41n07]
IMPORTANT: this plugin does NOT require to install LibFredo6.No video
To Set or Unset an Additional Directory
- Select menu Windows > Plugin Additional Directory
- A dialog box appear
[attachment=1:c9l41n07]<!-- ia1 -->000RedirectPlugins - Dialog.jpg<!-- ia1 -->[/attachment:c9l41n07] - Type the full path of the directory. Both / and \ are accepted, on Windows or Mac
- To remove additional directories, just make the field empty
- You will need to close and start Sketchup again to use the additional directory
Notes:
- You can enter several directories by typing their path separated by a semi-colon (;)
- The validity and the existence of the directory are checked when you enter the path in the dialog box. You will get a message in case of problem.
- The existence of the directory is also checked when starting Sketchup
000RedirectPlugins.rb 1.1a - 30 Jul 11: Initial public release
-
****NEW RELEASE AND CHANGE OF NAME, now 000_AdditionalPluginFolders.rb - v2.0a - 11 Aug 11
000_AdditionalPluginFolders.rb 2.0a - 11 Aug 11: Some enhancements and a change of name of the plugin
- More explicit capability for specifying several directories
- Protection against errors when loading plugins. This does not interrupt the whole load process and the errors are signaled
- Possibility to specify a confirmation for loading a directory when Sketchup starts up
See Main Post for more info and download
Fredo
-
NEW RELEASE
000_AdditionalPluginFolders.rb 3.0a - 23 Aug 11: major enhancements
- 000_AdditionalPluginFolders now loads plugins from the standard directory, with protection against errors. So even if you do not use additional folders, 000_AdditionalPluginFolders can help you to avoid errors at load time.
- New dialog box for specifying additional directories (in particular for Mac users)
Note: if you have LibFredo6 v4.0 (or above) installed, 000_AdditionalPluginFolders will log the status of the load cycle in the Tracelog utility of LibFredo6.
See Main Post for more info and download
-
Nice update. I got a similar script - also tracks loading performance.
(looking at your screenshot, why does your libfredo take 2.5 seconds to load?)
-
@thomthom said:
(looking at your screenshot, why does your libfredo take 2.5 seconds to load?)
This is the time to load LibFredo6 but also all of my scripts (FredoScale, etc...). If you install LibFredo6 4.0, you'll get details in the Performance dialog box.
My scripts are very verbose, but what I found out is that most time is taken in creating the toolbars, rather than loading ruby files.
Fred
-
So creating toolbars are a heavy penalty?
I've recently started to profile my plugins, I get the last load time as well as the average. Trying to work out which ones loads slower and why.
Toolbars are a good clue.Have you noticed if it's building the toolbar or actually displaying it that consumes time?
-
@thomthom said:
Have you noticed if it's building the toolbar or actually displaying it that consumes time?
I think the toolbars are displayed after the whole load sequence. I infer this from the fact that when you have an error in one script, you get an error message box, and you can observe that the SU toolbar is not yet updated.
On my PC with Windows 7, I get very fast load times, including for Toolbar creation. On XP, it is much slower, but still around 2 seconds for all my plugins
Fredo
-
Thank you so much.
-
I really need help. I've spent hours today trying to get this plugin to install. I even tried deleting sketchup completely and downloaded it again. Using mac os x 10.5 with sketch up 8. I need the plugin "round corners" I never successfully gotten a plugin to work and tried every step over and over. Could someone with a mac post screen shots of every step need to download a plugin. I know that sounds dumb, but I've exhausted all other attempts.
-
@philkrantz said:
I really need help. I've spent hours today trying to get this plugin to install. I even tried deleting sketchup completely and downloaded it again. Using mac os x 10.5 with sketch up 8. I need the plugin "round corners" I never successfully gotten a plugin to work and tried every step over and over. Could someone with a mac post screen shots of every step need to download a plugin. I know that sounds dumb, but I've exhausted all other attempts.
Just to be clear:
- you must put 000_AdditionelPluginFolders.rb in the Sketchup Plugins directory (so typically C:\Program Files\Google\Google SketchUp 8\Plugins)
- If you define an additional folder and you wish to install my plugins there, make sure that LibFredo6_Dir_40, LibFredo6.rb and the folder of my plgins (line ROUNDCORNER_Dir_23) are all located in this additional folder (they must resides altogether in the same place).
- You have a utility Windows > LibFredo6 Settings > View Trace Log Files that gives a status of what has been loaded in your current Sketchup session.
Thanks to advise if this solves your issues.
Fredo
-
Fredo, thanks a bunch for this plugin.
I can finally keep my plugins in my Dropbox and access/sync them across home PC, laptop & work!!!I had tried doing this manually the way TIG had suggested to me in a different post, but I kept having some plugins not loading, bugs etc.
Anyway, I do have one question: I noticed that the Artisan toolbar was iconless (other toolbars were ok).
I decided to try copying the artisan folder (not the loader) to the local plugin folder and the icons showed up:
I guess this means artisan insisted in looking for its icons at the absolute local path?
Is there a way to prevent/fix this?Thanks again!
-
@gtalarico said:
Anyway, I do have one question: I noticed that the Artisan toolbar was iconless (other toolbars were ok).
I decided to try copying the artisan folder (not the loader) to the local plugin folder and the icons showed up:
I guess this means artisan insisted in looking for its icons at the absolute local path?
Is there a way to prevent/fix this?Thanks again!
Some plugins rely on the standard Sketchup Plugin directory to find files and therefore won't work correctly if put in an alternate folder.
Also, plugins usually require that their loader and subfolders are in the same location.For Artisan (by Whaat), I will post a request in the related thread.
Fredo
-
@gtalarico said:
I can finally keep my plugins in my Dropbox and access/sync them across home PC, laptop & work!!!
Now that's a great idea. More than reason enough to download this plugin.
Thank you Fredo
-
Thanks Fredo.
My current work around is to keep a separate LOCAL plugin folder on my DB, and I update those manually.
-
@bob james said:
@gtalarico said:
I can finally keep my plugins in my Dropbox and access/sync them across home PC, laptop & work!!!
Now that's a great idea. More than reason enough to download this plugin.
Although I can still think of many uses for this plugin, I have further improved my SU<>Dropbox integration by using the method suggested by andrea.bianco here:
http://forums.sketchucation.com/viewtopic.php?f=15&t=40866
(The workflow is even further simplified and improved by Brodie here (Page2):
http://forums.sketchucation.com/viewtopic.php?f=15&t=34019&hilit=+dropboxI have now moved all SU folders (Components,Materials,Styles,Components) to my DB so they are in Sync at home and work by symlink-ing the folders in my DB to the SU folder.
Sorry this not necessarily "AdditionalPluginFolders" related, by it ties in to the conversation above, and I thought it could be helpful for people that end up in this post for the same reason I did. (SU+DB)
-
Its work perfectly ........
Thank you Ferdo ......
I like your all plugins ..... its very useful for my sketchup 3D modeling .......
THANKS again ...... waiting new things or new PLUGIN .... THANKS
-
Hi Fredo,
is there any chance the startup select directories dialog could have all 'options' in one dialog box, i.e. dir1, dir2, dir3 as opposed to a cascade.
also, is there any way to 're-select' one you need forgot.
It does work well
cheers
john -
@driven said:
is there any chance the startup select directories dialog could have all 'options' in one dialog box, i.e. dir1, dir2, dir3 as opposed to a cascade.
This is possible. I use the standard SU dialog box because it is faster programming. But I can develop one which is more comfortable
@driven said:
also, is there any way to 're-select' one you need forgot.
Difficult, because you would have to re-execute the whole loading cycle to be sure to catch all plugins.
If you need to start Sketchup frequently with various configurations (i.e. list of plugins), I would suggest other methods, based on list of plugins (a little bit like the Extension Preferences, but in external files that you can edit. Then 000_additionalPluginFolders would simply skip or load plugins depending on the configuration files.
Let me think of it
Fredo
PS: the objective of my script was mainly to avoid the Security issues with C:\program Files on Windows, share plugins between SU6, SU7 and SU8, and trap errors at loading to avoid messing up the toolbars. This is not really a plugin manager!
Advertisement