Need help syncing Plugins
-
I'm working on a method for syncing my plugins between my home computer and 2 different work computers. My idea was to use dropbox ( https://www.dropbox.com/referrals/NTM4NDI4MTk great app, check it out) to do this by placing my Plugins folder into dropbox and then have each of my SU apps reference that Plugins folder rather than the default location.
However, I've been unable to find out how/if I can redirect SU to look for the Plugins folder in a new location. Is this possible?
-Brodie
-
Make a script that is loaded from Plugins but loads any rb files in the New Folder...
It needs to make a list of all rb/rbs in the folder and load them in turn...
Just like the loaders of complex scripts load the files inside their own sub-folders - like my '2D Tools'... However if scripts have absolute paths rather than relative paths you might get some problems...
-
TIG,
Sounds a bit yucky on 2 accounts. 1) If I understand you correctly, I'd have to update the script every time I added/deleted a plugin. If it's that much trouble I'll stick with my current frustration. 2) I don't know carp about writing scripts.
Nevertheless, thanks for an answer. At least it sounds like I'm not missing something obvious. I was hoping I was just missing something in Preferences where I could redirect SU to look elsewhere for the Plugins folder.
Maybe there's some other creative answer/hack out there?
-Brodie
-
@unknownuser said:
TIG,
Sounds a bit yucky on 2 accounts. 1) If I understand you correctly, I'd have to update the script every time I added/deleted a plugin. If it's that much trouble I'll stick with my current frustration. 2) I don't know carp about writing scripts.
Nevertheless, thanks for an answer. At least it sounds like I'm not missing something obvious. I was hoping I was just missing something in Preferences where I could redirect SU to look elsewhere for the Plugins folder.
Maybe there's some other creative answer/hack out there?
-Brodie
- The script would just load ALL rubies it found so no rewriting needed BUT
- Scripts with absolute paths hard-coded will fall over - but at least you'll be told what they are...
-
Gotcha, that may be better than I thought. I may have found an alternative workaround on the Dropbox side rather than the SU side. It involves creating a windows Junction which points from the default Plugins folder to a Plugins folder placed into Dropbox. I'll take a crack at it tonight and report back.
If anyone cares to look into it in the meantime the how-to is here http://wiki.dropbox.com/TipsAndTricks/SyncOtherFolders
-Brodie
-
Sounds like a one liner
require_all("/any/folder")
is all you need (defined in sketchup.rb.)But as TIG said, not all scripts are made to work from any folder.
Advertisement