[Plugin] Center of Gravity
-
Yes it's v1.3
changed to tig_calculate (lines 131, 815)
Error; #<NoMethodError; undefined method `db' for CofGravity;Class> /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;155;in `calculate' /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;815
-
@driven said:
Yes it's v1.3
changed to tig_calculate (lines 131, 815)Error; #<NoMethodError; undefined method `db' for CofGravity;Class> > /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;155;in `calculate' > /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;815
You mustn't have changed them all as it's still calling 'calculate' ?
I've redone the original and v1.4 with full 'do_calculation' will be there asap... -
Here's v1.4 http://forums.sketchucation.com/viewtopic.php?p=229401#p229401 with 'calculate' replaced with 'do_calculation' to see if that fixes it - if not I have exhausted all ideas so far !!!
-
Ok, v1.4
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
sorry
-
@tig said:
...Any more ideas welcome...
Not yet, TIG - at least not anything that would be clear. I was just thinking aloud and combining my ideas. Maybe when I have already used the plugin for such things.
Thanks anyway!
-
Aaaarrrgh...
BUT as we can all see it is definingdb
as a method inside the particular class::def and then using it - the way it's used loads of times in other tools too... It works fine on PC so what is so special about a Mac ?
Puzzled... Any Mac scripters have any ideas ??? -
it is in the db method,
I just ran composite on to groups and got this
Error; #<NoMethodError; undefined method `db' for CofGravity;Class> /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;604;in `composite' /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/CofGravity.rb;817
-
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.
Advertisement