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

    [Plugin] Sketchup Ivy

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

      I'm having problems now too in OSX 10.9.1 and SU2013, before the Ivy version 0.6 worked fine on Mac, now when i call the plugin it appears this in Ruby Console:

      Ruby Console Error .jpg

      PS: I have uninstalled all the plugins except Ivy and the problem persists.

      "The result is the end what is important is the process" by Oxer
      [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

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

        You have float values saved as 0,8 rather than 0.8 so the commas breaks the conversion of the read_defaults string back into the hash ! There are some commas it needs, and some that should be '.' !
        You use a commas as your decimal separator rather than the '.', but Ruby uses '.' always...
        It should be something like:
        {:gravity=>{:vector=>[0, 0, -1], :weight=>1,0}, :branch=>{:radius=>0,8, :nodesize=>3, :detail=>4, :probability=>0,97, :floatlength=>150, :spread=>1,0, :pattern=>0,8}, :wind=>{:weight=>0,1}, :random=>{:weight=>0,3}, :adhesion=>{:weight=>0,2, :max_adhesion_distance=>50}, :legacy=>{:weight=>0,8}, :leaf=>{:probability=>0,75, :size=>5,0, :pattern=>1}}
        but you have:
        {:gravity=>{:vector=>[0, 0, -1], :weight=>1,0}, :branch=>{:radius=>0.8, :nodesize=>3, :detail=>4, :probability=>0.97, :floatlength=>150, :spread=>1,0, :pattern=>0.8}, :wind=>{:weight=>0.1}, :random=>{:weight=>0.3}, :adhesion=>{:weight=>0.2, :max_adhesion_distance=>50}, :legacy=>{:weight=>0.8}, :leaf=>{:probability=>0.75, :size=>5,0, :pattern=>1}}

        If you edit the file 'LiveVector_core.rb' with a plain-text editor and find line #61 that says:
        return eval(str)
        and now insert these lines of code just in front of it, thus:
        split=str.split('=>') split.dup.each_with_index{|e, i| next unless e=~/^[0-9]/; next unless e.count(',')==2; split[i]=e.sub(/,/, '.') } str=split.join('=>')
        then
        return eval(str)
        This should change the ',' to '.' - but only in the numbers like 0,8 >>> 0.8 but vector arrays and simple integers are ignored.
        The hash should now eval OK... 😒

        TIG

        1 條回覆 最後回覆 回覆 引用 0
        • OxerO 離線
          Oxer
          最後由 編輯

          Hi TIG,
          I done that you say me but it continue with the same Ruby Console Error, after try all possibilities (uninstall all plugins, delete SU preferences, etc) and to see that the problem persisted I have opted for delete SU2013 folder, all preferences (SU preferences, all plugins preferences, hide files related) and reinstall SU and the plugins and voila! now all work fine.
          I had time to try more things, perhaps it were a corrupt preference file or a conflict with other plugin, I don't know, mystery! ❓

          "The result is the end what is important is the process" by Oxer
          [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

          1 條回覆 最後回覆 回覆 引用 0
          • JBJDesignsJ 離線
            JBJDesigns
            最後由 編輯

            @krisidious said:

            Gravity might be your problem. Try setting it lower... Somewhere earlier in these posts there are default settings.

            The gravity settings were set at various levels, i.e., low, mid and high values. The leaves still droop. Also, I haven't heard anything back about the leaves turning up in every new project I start as components. Although it is now easier to "delete" the leaved and purge from materials, it's still annoying. Great idea, but I'd love to see further refinements.

            ...you send them to school, you give them books, and they eat the pages...

            1 條回覆 最後回覆 回覆 引用 0
            • A 離線
              ayarriquitukis
              最後由 編輯

              i fix a problem with the alpha img i can use in sketchup 2014... if you want tell me ... "for search a way to upload my new files"excuse me for the bad english....

              1 條回覆 最後回覆 回覆 引用 0
              • J 離線
                Jorgensen
                最後由 編輯

                When I press SHIFT+CLICK, I get the attaced errors.

                Does anyone know if I can fix this?

                Thanks 😄
                Jorgensen


                Capture.JPG

                sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

                1 條回覆 最後回覆 回覆 引用 0
                • J 離線
                  Jorgensen
                  最後由 編輯

                  I made second instance of Sketchup, copied my model to the new file, and then Ivy works.

                  Strange - my project file must miss someting that Ivy needs... does anyone have an idea to what that could be?

                  Thanks

                  sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

                  1 條回覆 最後回覆 回覆 引用 0
                  • cottyC 離線
                    cotty
                    最後由 編輯

                    From your screenshot: material named "ivy_stem". I don't know that plugin, but maybe you purged it away?

                    my SketchUp gallery

                    1 條回覆 最後回覆 回覆 引用 0
                    • J 離線
                      Jorgensen
                      最後由 編輯

                      Hi cotty

                      You are right about the matrials.

                      If i create a new project, the materials seems to be created, but if I open an old one project, the materials are not created.

                      sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

                      1 條回覆 最後回覆 回覆 引用 0
                      • M 離線
                        mattao987
                        最後由 編輯

                        It's frustrating... It works on my "stagiaire" windows PC and not on my mac!!!

                        What should I do?

                        The Ivy window open but clicking on the object as no effect ( as if I was using no tools)

                        Please help

                        Mat

                        1 條回覆 最後回覆 回覆 引用 0
                        • OxerO 離線
                          Oxer
                          最後由 編輯

                          For my experience, this may be due to haven't the ivy components when you open a new file, check in the Components Window to see if they are three when you open a new file, check the Materials window too.
                          I fixed the problem opening a file with ivy already generated and then delete it and save the file like my main template, IMPORTANT: Don't Purge the file.
                          PS: If you want to purge the model before save the template, do it before delete the ivy.

                          "The result is the end what is important is the process" by Oxer
                          [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                          1 條回覆 最後回覆 回覆 引用 0
                          • M 離線
                            mattao987
                            最後由 編輯

                            Thanks for your fast reply Oxer
                            Unfortunately I got the components and the materials loaded in the "new file" and it do not work.

                            Could you send me a file loaded with some ivy? I would try to use the tool in your file.

                            1 條回覆 最後回覆 回覆 引用 0
                            • OxerO 離線
                              Oxer
                              最後由 編輯

                              This is the file with the Ivy included:

                              Ivy Model

                              If it works for you, delete the ivy and the square and save it like a template, remember DON'T PURGE the model.

                              PS: I work on Mac and the unique version that works for me is 0.6 beta.

                              SketchupIvy.0.6.beta

                              "The result is the end what is important is the process" by Oxer
                              [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                              1 條回覆 最後回覆 回覆 引用 0
                              • M 離線
                                mattao987
                                最後由 編輯

                                Thanks to you oxer it works

                                I got Ivy growing ( no leaf yet...)

                                1 條回覆 最後回覆 回覆 引用 0
                                • M 離線
                                  mattao987
                                  最後由 編輯

                                  Got leaves!

                                  Got to find how to get stem

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • OxerO 離線
                                    Oxer
                                    最後由 編輯

                                    The keys for the Ivy on Mac:

                                    1. Click : Makes grow the main Ivy.
                                    2. Cmd+Click : Makes grow the Ivy in the direction of mouse.
                                    3. Alt+Click : Makes grow the Leafs.
                                    4. SHIFT+Click : Finish the Ivy.
                                    5. i Key : Resume.

                                    "The result is the end what is important is the process" by Oxer
                                    [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

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

                                      trouble with the leafs after generate. the background is not transparent. I'm missing something?

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • H 離線
                                        Heferkimbo
                                        最後由 編輯

                                        Hello guys. I have been having problems with this amazing plugin.. version 0.6 did work for a few hours, but after turning the laptop again it only gave me errors. Other version didn't give errors, but they didn't do anything either, only 0.6 allowed me to play with the Ivy Generator!!..

                                        Anyway, this is a screenshot of the errors that i get after a click.
                                        Working on Mac.


                                        Sin título copia.jpg

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

                                          Hi

                                          Each time i start a new file the Ivy components are present even when i haven't used tool. Not a big issue, but it would be good if these could be added only once you run the plugin.

                                          Cheers

                                          Corey

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

                                            @coreymurray said:

                                            Hi

                                            Each time i start a new file the Ivy components are present even when i haven't used tool. Not a big issue, but it would be good if these could be added only once you run the plugin.

                                            Cheers

                                            Corey
                                            This is a known limitation, as it loads them as it is loaded, not as it is used...
                                            This is how to fix it...
                                            In the ../Plugins/LiveIvy folder find the file LiveIvyTool.rb
                                            Open it with a plain text editor like Notepad or Notepad++ on PC, or TextWrangler on MAC.
                                            Find line #351 near the end that reads:
                                            LiveIvy::IvyTool.load_definitions
                                            add a # to the start of it so it doesn't load, thus:
                                            #LiveIvy::IvyTool.load_definitions
                                            Now to get them loaded as the tool is used, edit>copy the text:
                                            LiveIvy::IvyTool.load_definitions [NO #]
                                            and go up to line #10 which says:
                                            def initialize
                                            Add a new line below it, and then edit>paste:
                                            LiveIvy::IvyTool.load_definitions
                                            That will now load the definitions as the tool is first used, or subsequently if you have purged the definitions etc...

                                            Save the file and restart SketchUp to see the changes...

                                            Another possible tweak while you are at it... 🤓
                                            In the same file, around line ~#298 it says:
                                            #path = File.join(pathname, 'Textures/ivyleaf_1.skp') pathname = Sketchup.find_support_file "ivyleaf_1.skp", "Plugins/LiveIvy/Textures/"
                                            and also below in two similar blocks of text, at lines ~#303/#309***: this code means that the tool only works if you install it into the default Plugins folder, so if you really want it to also potentially run from elsewhere, then swap the #'d around AND change some of the text, so it reads.
                                            path**name** = File.join(**my_**pathname, 'Textures/ivyleaf_1.skp') **#**pathname = Sketchup.find_support_file "ivyleaf_1.skp", "Plugins/LiveIvy/Textures/"
                                            repeat for the other two blocks of code***
                                            AND then also remember to change line earlier on. in ~#294 from:
                                            pathname = File.expand_path(File.dirname(__FILE__))
                                            to read:
                                            **my_**pathname = File.expand_path(File.dirname(__FILE__))
                                            so that it looks into the correct folder.

                                            🤓

                                            TIG

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 28
                                            • 29
                                            • 30
                                            • 31
                                            • 32
                                            • 36
                                            • 37
                                            • 30 / 37
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement