[Plugin] Center of Gravity
-
TIG,
Sorry for the earlier abbreviated message - I got called away from the computer.
I get the following when trying CofG (Version 1.4 here).
QUOTE
Error: #<NoMethodError: undefined method
db' for CofGravity:Class> /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb:156:in
do_calculation'
/Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb:816UNQUOTE
-
Possibly something to do with the version of Ruby? Macs running Snow Leopard come with a pre-packaged version 1.8.7 of Ruby.
-
The error is with the
db
def method... BUT it ha been and is still working fine on PCs and it's been used in similar ways in many other tools... so why the problem here ?
To avoid having to adddeBabelizer(string, lingvo_file_path)
to every string in the output that needs translating I make a shortcut method defdb
for each tool
that alls deBabelizer and has thelingvo_file_path
hardcoded into it, and works simply asdb(string)
.
It's easy and effective in all my recent tools, so why the problem here ???
It's clear now that it wasn't the missed out 'require' or other possible clashes that were causing this... BUT why it's not working is a mystery...Surely you can call a def inside another def though ??? even with 1.8.7 on Macs ???
-
I had checked for any evidence of Vista stupidity given past experience with having to look at the Virtual Store. But I've tried v. 1.4 and it works great!
Thank you so much for your incredible plugins. I'm using them for sci-fi mesh analysis and they are invaluable.
-
Seems to work fine on PC but on Mac it falls over... I WILL find a solution...
-
I'll try it on an sterile Mac i.e. just on it's own, see what happens, give me five minutes
-
Same error when v1.4 + debabelizer are the only rubies installed
-
TIG,
It's not all Macs that have problems, though. It works just fine on mine. Could it be another plugin or something?
-
As I suspected
I'll sleep on it... and see how I can devise a work around in my sleep...
PC works fine - come on Mac's what's up with you !!!
Is it a particular version of Mac OS and the Ruby version that they have ??? -
well, mine are
both running SU 7.1
both running OSX 10.5.8
both running Ruby version 1.8.6
MacBookPro is a fresh SU instal with just v1.4 bits
iMac is littered with rubies but very few clashes are left roaming free, it is also running rubygems, but that doesn't seem to effect any thing else in SUboth give same error
john
-
Must be something wrong with my Mac, then.
-
-
Very funny. I have both and I know the difference.
Here's proof that it works on my Mac.
-
works ok on my Mac but TIG Tools folder replaced existing one so extrusion toolbar icons disappeared. I see missing icons on Dave's screenshot also.
-
Most mysterious. I have tried with no other plugins or tools in the respective folders and using CofG version 1.4 I still get:-
Error; #<NoMethodError; undefined method `db' for CofGravity;Class> /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;156;in `do_calculation' /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;816 /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;156;in `call' /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;156
-
@wind-borne said:
works ok on my Mac but TIG Tools folder replaced existing one so extrusion toolbar icons disappeared. I see missing icons on Dave's screenshot also.
"Merge" the folders so that the other existing files are kept - just overwrite any files for that specific tool...
-
Thanks for noticing that Wind-Borne and thank you TIG for the fix.
-
I have translated the plugin to Spanish language, bottom i put de link for download. I see that other Mac's users have the plugin working fine, to me no works, i use Sketchup 7.1 in Mac OSX Snow Leopard 10.6.2 and the last version of the plugin CofG_1.4, i have tried run sketchup with CofG in the plugins folder only, and don't works, SU read the plugin, i see the plugin (in spanish) in plugins Menu but don't works.
When i run the plugin this message appears in Ruby Console:
Error: #<NoMethodError: undefined methoddb' for CofGravity:Class> /Users/Oxer/Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb:156:in
do_calculation'
/Users/Oxer/Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb:816
/Users/Oxer/Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb:156:in `call'
/Users/Oxer/Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb:156EDIT: Script Removed. SketchUcation forum policy does not permit people to post scripts they did not write. Please obtain permission from the author first, thanks!
-
Pedro
We have been PMing about this - the Mac db glitch is known and driven and I are trying to track it down.
Please PM me the CofG ES lingvo file and I'll publish it with acknowledgment of your input - hopefully with a fix for this Mac/Ruby glitch...
-
Here's 1.5
I've reworked the code to suit all Macs as well as PC.
A ES lingvo file has been added - by Oxer.http://forums.sketchucation.com/viewtopic.php?p=229401#p229401
Advertisement