sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Sketchup Ivy

    Scheduled Pinned Locked Moved Plugins
    732 Posts 172 Posters 265.8k Views 172 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TIGT Offline
      TIG Moderator
      last edited by

      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 Reply Last reply Reply Quote 0
      • OxerO Offline
        Oxer
        last edited by

        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 Reply Last reply Reply Quote 0
        • JBJDesignsJ Offline
          JBJDesigns
          last edited by

          @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 Reply Last reply Reply Quote 0
          • A Offline
            ayarriquitukis
            last edited by

            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 Reply Last reply Reply Quote 0
            • J Offline
              Jorgensen
              last edited by

              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 Reply Last reply Reply Quote 0
              • J Offline
                Jorgensen
                last edited by

                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 Reply Last reply Reply Quote 0
                • cottyC Offline
                  cotty
                  last edited by

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

                  my SketchUp gallery

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jorgensen
                    last edited by

                    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 Reply Last reply Reply Quote 0
                    • M Offline
                      mattao987
                      last edited by

                      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 Reply Last reply Reply Quote 0
                      • OxerO Offline
                        Oxer
                        last edited by

                        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 Reply Last reply Reply Quote 0
                        • M Offline
                          mattao987
                          last edited by

                          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 Reply Last reply Reply Quote 0
                          • OxerO Offline
                            Oxer
                            last edited by

                            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 Reply Last reply Reply Quote 0
                            • M Offline
                              mattao987
                              last edited by

                              Thanks to you oxer it works

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

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                mattao987
                                last edited by

                                Got leaves!

                                Got to find how to get stem

                                1 Reply Last reply Reply Quote 0
                                • OxerO Offline
                                  Oxer
                                  last edited by

                                  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 Reply Last reply Reply Quote 0
                                  • R Offline
                                    razvan
                                    last edited by

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

                                    1 Reply Last reply Reply Quote 0
                                    • H Offline
                                      Heferkimbo
                                      last edited by

                                      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 Reply Last reply Reply Quote 0
                                      • C Offline
                                        coreymurray
                                        last edited by

                                        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 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          @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 Reply Last reply Reply Quote 0
                                          • OxerO Offline
                                            Oxer
                                            last edited by

                                            Thanks for the info!!

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

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 24
                                            • 25
                                            • 26
                                            • 27
                                            • 28
                                            • 36
                                            • 37
                                            • 26 / 37
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement