sketchucation logo sketchucation
    • 登入
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Center of Gravity

    已排程 已置頂 已鎖定 已移動 Plugins
    183 貼文 41 Posters 297.6k 瀏覽 41 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • TIGT 線上
      TIG Moderator
      最後由 編輯

      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 !!!

      TIG

      1 條回覆 最後回覆 回覆 引用 0
      • D 離線
        driven
        最後由 編輯

        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

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 條回覆 最後回覆 回覆 引用 0
        • GaieusG 離線
          Gaieus
          最後由 編輯

          @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!
          😉

          Gai...

          1 條回覆 最後回覆 回覆 引用 0
          • TIGT 線上
            TIG Moderator
            最後由 編輯

            Aaaarrrgh... 😒
            BUT as we can all see it is defining db 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 ??? ❓ ❓ ❓

            TIG

            1 條回覆 最後回覆 回覆 引用 0
            • D 離線
              driven
              最後由 編輯

              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
              
              

              learn from the mistakes of others, you may not live long enough to make them all yourself...

              1 條回覆 最後回覆 回覆 引用 0
              • C 離線
                chrisjk
                最後由 編輯

                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:816

                UNQUOTE

                Chris

                1 條回覆 最後回覆 回覆 引用 0
                • C 離線
                  chrisjk
                  最後由 編輯

                  Possibly something to do with the version of Ruby? Macs running Snow Leopard come with a pre-packaged version 1.8.7 of Ruby.

                  Chris

                  1 條回覆 最後回覆 回覆 引用 0
                  • TIGT 線上
                    TIG Moderator
                    最後由 編輯

                    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 add deBabelizer(string, lingvo_file_path) to every string in the output that needs translating I make a shortcut method def db for each tool
                    that alls deBabelizer and has the lingvo_file_path hardcoded into it, and works simply as db(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 ???

                    TIG

                    1 條回覆 最後回覆 回覆 引用 0
                    • D 離線
                      DSG2k
                      最後由 編輯

                      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.

                      1 條回覆 最後回覆 回覆 引用 0
                      • TIGT 線上
                        TIG Moderator
                        最後由 編輯

                        Seems to work fine on PC but on Mac it falls over... I WILL find a solution... 😒

                        TIG

                        1 條回覆 最後回覆 回覆 引用 0
                        • D 離線
                          driven
                          最後由 編輯

                          I'll try it on an sterile Mac i.e. just on it's own, see what happens, give me five minutes

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 條回覆 最後回覆 回覆 引用 0
                          • D 離線
                            driven
                            最後由 編輯

                            Same error when v1.4 + debabelizer are the only rubies installed

                            learn from the mistakes of others, you may not live long enough to make them all yourself...

                            1 條回覆 最後回覆 回覆 引用 0
                            • Dave RD 離線
                              Dave R
                              最後由 編輯

                              TIG,

                              It's not all Macs that have problems, though. It works just fine on mine. Could it be another plugin or something?

                              Etaoin Shrdlu

                              %

                              (THERE'S NO PLACE LIKE)

                              G28 X0.0 Y0.0 Z0.0

                              M30

                              %

                              1 條回覆 最後回覆 回覆 引用 0
                              • TIGT 線上
                                TIG Moderator
                                最後由 編輯

                                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 ??? 😕

                                TIG

                                1 條回覆 最後回覆 回覆 引用 0
                                • D 離線
                                  driven
                                  最後由 編輯

                                  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 SU

                                  both give same error

                                  john

                                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • Dave RD 離線
                                    Dave R
                                    最後由 編輯

                                    Must be something wrong with my Mac, then.

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • D 離線
                                      driven
                                      最後由 編輯

                                      @dave r said:

                                      Must be something wrong with my Mac, then.

                                      yeh, you sure it's not a PC....

                                      learn from the mistakes of others, you may not live long enough to make them all yourself...

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • Dave RD 離線
                                        Dave R
                                        最後由 編輯

                                        Very funny. 😒 I have both and I know the difference.

                                        Here's proof that it works on my Mac.

                                        http://farm5.static.flickr.com/4011/4418553314_f02f513736.jpg

                                        Etaoin Shrdlu

                                        %

                                        (THERE'S NO PLACE LIKE)

                                        G28 X0.0 Y0.0 Z0.0

                                        M30

                                        %

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • wind-borneW 離線
                                          wind-borne
                                          最後由 編輯

                                          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.


                                          C of G.png

                                          "To read between the lines was easier than to follow the text."OSX 10.11.6

                                          %(#BF80BF)[SU 8 pro

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • C 離線
                                            chrisjk
                                            最後由 編輯

                                            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
                                            

                                            Chris

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 9
                                            • 10
                                            • 3 / 10
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement