Yet another "plugins won't load" thread
-
On a MAC the correct 'plugins' folder is in the 'root' MAC HD Lib path... and NEVER EVER the 'user' one...
However did you reach that erroneous conclusion ?Please type [or copy+paste]
Sketchup.find_support_file("plugins")
into the Ruby Console - this should tell you exactly where plugins ought to be...PS: also check that you have NOT set your MAC's OS to be 'case-sensitive' == 'the kiss of death' ! Because some [even 'system'] files are sloppy about 'case'.......
-
Sketchup.find_support_file("plugins")
/Users/(myusername)/Library/Application Support/Google SketchUp 8/SketchUp/pluginserroneous?
how do I set the case sensitive option?
-
Doh!
That's NOT right...
Have you somehow reset a path?
It ought to be more like
Macintosh HD/Library/Application Support/Google SketchUp 8/SketchUp/plugins
!!!
No 'user' involvedOn Case-sensitivity:
If you can't readily make a file called 'text' inside a folder that already contains a file called 'Text' then you are OK... Unix can allow files with very similar names to exists - most MACs and all PCs won't... so saving a file named 'text' should overwrite a file named 'Text' etc... However, you can install a MAC OS with a flag set to behave 'Unix-like' and allow this... then if you are asking the OS to find a file called 'Sketchup' when it's actually called 'sketchup' you will get no matches - sometimes that can cause Ruby to flounder ! -
just checked, I am HFS+ ( case-insensitive right?)
-
I think that HFS+ is just the standard MAC file-system - you can set it to be case-sensitive - but as I understand it, it defaults to the 'light' side - i.e. non-case-sensitive... So unless you have 'deliberately' messed it up you should be OK... YOU are the guy who bought the MAC, I'm the guy with the PC...
Have you resolved the Plugins path issue ?
Perhaps some MAC-guru user could step in here as I am sinking fast........................... -
Maybe including a filename would give a better result?
Sketchup.find_support_file("examples.rb", "plugins")
Also, interested in seeing the result of this typed in the ruby console:
$:
There is this little "gem" hidden at the end of example/examplescrits.rb. So if the examples extension are enabled, the user's HOME folder is added to the $LOAD_PATH
#----------------------------------------------------------------------------- # SketchUp sets up Ruby to look for files in its plugins directory when you # use the load command. You can add additional directories to its search path. # This can be useful when you are developing new scripts because it can # make it easier to load them during testing. # This command adds your home directory to the search path. Note that this # only works if the environment variable HOME is defined. # $; is a special system variable in Ruby that defines the search path. if( ENV["HOME"] ) homedir = File.expand_path("~") $;.push homedir end
-
$:
["/Users/jefferylegere/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics/", "/Users/jefferylegere/Library/Application Support/Google SketchUp 8/SketchUp/Plugins", "/Library/Application Support/Google SketchUp 8/SketchUp/Plugins", "/Library/Application Support/Google SketchUp 8/SketchUp/Tools"]one interesting note. it IS seeing my plugins, as I get errors related to them. just no plugin menu unless I have sketchy physics in the folder, then only sketchy physics shows in the plugin menu.
-
I think reinstalling sketchup has fixed what ever was weird ( even though I get the same ruby console responses)
-
Also be warned that SketchyPhysics [one of a few 'rogue-scripts' around] will probably mess with some base-classes relating to groups etc ill-advisedly, thereby breaking the correct operation of some others' tools, that of course expect that the API is working as it should !
I recommend you only have SketchyPhysics installed in Plugins when you need it, this will allow other tools to run correctly... -
@tig said:
Also be warned that SketchyPhysics [one of a few 'rogue-scripts' around] will probably mess with some base-classes relating to groups etc ill-advisedly, thereby breaking the correct operation of some others' tools, that of course expect that the API is working as it should !
I recommend you only have SketchyPhysics installed in Plugins when you need it, this will allow other tools to run correctly...warning taken. I have it removed for now. not ready for it yet anyways.
Advertisement