Location of SketchUp 2015 Plugins Folder on Mac
-
Sorry for the confusion.
The two 'RubyStdLib
' folders are in../Tools
on PC only - this is where SketchUp installs its own Ruby stuff, on PCs.
On MACs these folders have different paths/names, and a different head-counts for the various 'Ruby
' folders that are needed... -
Thanks TIG. I'll edit my post to emphasize that that my $: list is from a Mac.
-
Thanks Dave. I went through this thread multiple times and each time I obviously overlooked "Plugins folder is in your User/Library... path not HD path...". I guess I was expecting to see something with more than two parts.
TIG, thanks for the tip about the $: variable. I had not seen that before. However, I'm confused by your reference to "the two ../Tools/RubyStdLib folders" because I don't seem to have them.
I have a pretty much "out of the box" SU 2015 MAC installation and my $: contains:
["/Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/site_ruby/2.0.0",
"/Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/site_ruby/2.0.0/x86_64-darwin12.5.0",
"/Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/site_ruby",
"/Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/vendor_ruby/2.0.0",
"/Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin12.5.0",
"/Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/vendor_ruby",
"/Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/2.0.0",
"/Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/2.0.0/x86_64-darwin12.5.0",
"/Applications/SketchUp 2015/SketchUp.app/Contents/Resources/Content/Tools",
"/Users/amohr/Library/Application Support/SketchUp 2015/SketchUp/Plugins"]Is that Tools/RubyStdLib folder where you install Ruby extension modules rather than SU extensions?
Thanks again,
August -
The various site_ruby and vendor_ruby folders in your $: are where ruby add-on ruby code would be placed in a standard system Ruby on MacOS. The variations and subfolders reflect whether the code is version or hardware specific. On SketchUp, these are inside the Ruby Framework embedded inside SketchUp's app bundle. Although possible, adding things inside the bundle is usually discouraged simply because the content there "belongs" to the SketchUp app. For example, it may be overwritten if you install a maintenance update.
A safer route is to create a subfolder within your personal Plugins folder, put ad-hoc Ruby add-ons there, and either load them using an explicit path or modify $: to find them.
Most of the time these days, you should install a Gem not just Ruby code. You can do this from within SketchUp by Gem::install "name of gem" at the Ruby Console. Pure Ruby gems are supported in SketchUp 2014 and 2015, but SketchUp is not set up to support compiling Gems from C code. People have had varying experiences with compiling Gems outside SketchUp and then copying files into SU. Some successes, a lot of failures...
-
@unknownuser said:
... or modify $: to find them.
This is starting to get a bit off topic from the title, but...
HOW do you modify $:? Where is it defined? Is it a shell variable or a Ruby variable?
Thanks.
-
It is a Ruby global variable that is initialized by the Ruby kernel. You can read it or assign to it from any Ruby code.
-
The 'load-path' is set up as SketchUp's Ruby starts - it's a basic building-block of Ruby.
It has the various default folder-paths defined in it.
Note that SketchUp ALWAYS uses the default 'user' Plugins folder for its auto-installs from RBZ files...
SketchUcation's Archive Installer allows you to choose another folder from the $: IF it's been set up - it also installs RBZ and ZIP archives...The $: is an array.
It is a system global so can be accessed in any script's code or the Ruby Console...
You can add new folder-paths into the array$: << my_new_folder_path
...
You can also remove paths ($:.delete(my_old_folder_path)
) - but removing any of the built-in default folder-paths will break things - so don't do it !
A added folder-path will be searched for an 'require' commands that are not found in the default set...
However, that folder's rb/rbs files will not be auto-loaded as SketchUp starts, unless you have a script loading from the default Plugins folder that perhaps adds another folder to the $: and then loads all rb/rbs files it finds in there - like Freod's AdditionalPluginsFolder tool... -
I've got a problem that I cannot uninstall:
Advanced Camera Tools
Dynamic Components
Photo Textures
Sandbox Tools
Trimble ConnectEach time I restart SUP2017 I get a message that 4 extensions need updating. When I try to update the extensions that it lists as needing attention, I get the message [failed to update advanced camera tools. Unable to read extension archive]
I may have caused the problem as I removed the files from the Plugin folder on Mac. However, even placing them back, restarting the Mac etc. still get the same thing happening.
-
For an immediate fix, go to the Extension Warehouse in your Internet browser and download them to your computer. Then, in SketchUp go to the Window menu and select Extension Manager. click on Install Extension and find the first of those downloaded file. Click Open and OK or Yes. Repeat for each of the others. That'll get rid of the message about needing updates.
Don't remove those files from the Plugins folder. These are files that come with SketchUp. It looks for them in the Plugins folder. If it doesn't find them, it reinstalls them. Since the ones that came with SU2017 are outdated, removing the updated ones from the Plugins folder will result in the outdated ones being installed. If you don't use the features they access, it's no big deal. They don't hurt anything so just leave them there.
If you really don't want them to load, find them in the Extension Manager and disable them.
As for the error message you were getting, try opening Extension Warehouse from the Window menu. Sign out. Quit SketchUp and reopen it. Sign in again. That has helped many users get beyond that problem.
-
Those are all standard extensions that come with the software, cannot be uninstalled as it is automatically reinstalled at the next startup. Just go to View > Toolbars (on a PC) and disable the toolbars associated with those, at least you won't have to stare at their toolbars if you don't use them.
-
Thanks, I don't know why I was getting an error with them then. However, I found my 2018 license details in my junk mail, so in switching to 2018, it's all fine again.
Advertisement