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

      To ensure that all of the model is included in the current drawn view within the Tool's class you have this method

      def getExtents
          bbox=Sketchup.active_model.bounds
          bbox.add(@ip.position)if @ip and @ip.valid?
          return bbox
      end
      

      assuming that @ip is your input point etc

      TIG

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        @dave r said:

        It is an interesting plugin. Thank you. Like Alan, I don't see the red latent growth path. Most of the time orbiting doesn't help. Also, even with branching probability set to .99 I don't get any branches. If I have units set to Fractional as I normally do I get the following in the console.

        %(#FF0000)[nil
        Error: #<NoMethodError: undefined method []' for nil:NilClass> C:/Program Files/Google/Google SketchUp 8/Plugins/SketchupIvy/tool.rb:43:in onLButtonDown'
        C:/Program Files/Google/Google SketchUp 8/Plugins/SketchupIvy/tool.rb:43]

        Line #43 in tool.rb should read something like this, so that the raytest can fail and not break things when there is no intersect...
        @iv = Si::Ivy.new(intersect[0], intersect[1].last.normal) **if intersect and intersect[1]**
        It should NOT be the result of 'units' settings - it's just an untrapped occurrence in the code when the raytest returns 'nil'.

        TIG

        1 Reply Last reply Reply Quote 0
        • Dave RD Offline
          Dave R
          last edited by

          Well, you know how much I know about Ruby. Still, if I change the units to Decimal>Millimeters, the plugin works. If I change it to Fractional, it doesn't.

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            @dave r said:

            Well, you know how much I know about Ruby. Still, if I change the units to Decimal>Millimeters, the plugin works. If I change it to Fractional, it doesn't.

            BUT the error you published isn't caused by the units change ?
            Do you get any other errors...
            The way it's coded is quite convoluted but I see no issues with fractional sizes as these are [probably?] returned as lengths anyway ?

            TIG

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

              Hi,
              I work on Mac and i have probed to add the tool.rb to my Plugins Folder, when run the plugin this is the message in Ruby Console:

              Message Ruby Console

              "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
              • thomthomT Offline
                thomthom
                last edited by

                @Oxer: plugins should not go in your User folder. They should be under the root folder.
                See this page for description: http://code.google.com/apis/sketchup/docs/loading.html

                /Library/Application Support/Google SketchUp [n]/SketchUp/plugins

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  Oxer - the tool.rb file is to go into the Ivy subfolder, NOT into Plugins directly!

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • Dave RD Offline
                    Dave R
                    last edited by

                    TIG, I shut down SketchUp and restarted it. It doesn't give any errors this time running in Fractional so I don't know why changing units affected the results. I didn't get any other error messages before. It still doesn't create branching and the red lines don't show up. Perhaps the author will refine the plugin further and I'll give it a try then. I've got too much other stuff to do for the moment.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      Pierreden
                      last edited by

                      @Dave: Uploaded a new version in the Top post. Try that one πŸ‘

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        Lobster
                        last edited by

                        Hi,

                        Replaced the tool as suggested,

                        Ruby Window output on activating plug in is

                        Error: #<ArgumentError: wrong number of arguments (0 for 1)>
                        /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchupIvy/tool.rb:87:in activate' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchupIvy/tool.rb:87:in select_tool'
                        /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchupIvy/tool.rb:87

                        When clicking to grow it is this

                        /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchupIvy/tool.rb:15:in add' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchupIvy/tool.rb:15:in getExtents'
                        /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchupIvy/tool.rb:71:in refresh' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchupIvy/tool.rb:71:in onLButtonDown'
                        /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchupIvy/tool.rb:15

                        Regards

                        Sam

                        1 Reply Last reply Reply Quote 0
                        • Dave RD Offline
                          Dave R
                          last edited by

                          @pierreden said:

                          @Dave: Uploaded a new version in the Top post. Try that one πŸ‘

                          C:/Program Files/Google/Google SketchUp 8/Plugins/SketchupIvy/node.rb:50: warning: parenthesize argument(s) for future version
                          C:/Program Files/Google/Google SketchUp 8/Plugins/SketchupIvy/node.rb:85: warning: parenthesize argument(s) for future version
                          (20.7643", 4.678738", 0")
                          #Sketchup::Face:0x8a963e0
                          Faces: 1
                          10 / Branches: 1 / Live Branches: 1 / 0.016

                          Nor red lines or branching either. 😞

                          Etaoin Shrdlu

                          %

                          (THERE'S NO PLACE LIKE)

                          G28 X0.0 Y0.0 Z0.0

                          M30

                          %

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

                            Thomthom, i have changed the plugin to the root /Library/Application Support/Google SketchUp [n/SketchUp/plugins] (generally i haven't problems with the plugins if i put them in the other root) and i replaced the tool.rb in the Ivy subfolder, but the plugin don't works, this is the new message in the Ruby Console:

                            Captura de pantalla 2011-04-27 a las 14.48.04.JPG

                            "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
                            • P Offline
                              Pierreden
                              last edited by

                              Sorry Guys! The file i updated 10 minutes ago was actually a downdate πŸ˜’ Sorry for the inconvenience. The new one should work.

                              1 Reply Last reply Reply Quote 0
                              • R Offline
                                robert111
                                last edited by

                                andre51
                                how to make leaves with this plugin plzzzzzzzzzzz

                                i like you ivy very nice

                                can you make tutu for your ivy setting plz


                                ivy.jpg

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  Pierreden
                                  last edited by

                                  @robert111 said:

                                  andre51
                                  how to make leaves with this plugin plzzzzzzzzzzz

                                  i like you ivy very nice

                                  can you make tutu for your ivy setting plz

                                  Thats from the original standalone plugin foud here

                                  Leaves will soon be available in this plugin too, but isnt at the moment πŸ˜‰

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

                                    I have installed the last revision SketchupIvy_v.0.1.5 but the problem persists on Mac OSX

                                    Captura de pantalla 2011-04-27 a las 15.10.10.JPG

                                    "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
                                    • TIGT Offline
                                      TIG Moderator
                                      last edited by

                                      The Tool class activate doesn't have arguments ( initialize can)

                                      def activate(view)
                                        puts view
                                      end
                                      

                                      line#88 et al is superfluous and could be omitted in its entirety ? Why give it 'view' simply to print to the Console?
                                      It could be

                                      def activate
                                        puts Sketchup.active_model.active_view
                                      end
                                      

                                      with little use??

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        andre51
                                        last edited by

                                        Hi Robert111

                                        Just convert the lines to tubes, create an ivy leaf component and use the fur plugin - you wil need a bit of trail and error but it works ok.

                                        Regards

                                        Andre

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          Pierreden
                                          last edited by

                                          @tig said:

                                          The Tool class activate doesn't have arguments ( initialize can)

                                          def activate(view)
                                          >   puts view
                                          > end
                                          

                                          line#88 et al is superfluous and could be omitted in its entirety ? Why give it 'view' simply to print to the Console?

                                          It could be

                                          def activate
                                          >   puts Sketchup.active_model.active_view
                                          > end
                                          

                                          with little use??

                                          Thank you!!! I couldnt for the love of anything find out whats wrong! I guess the activate method is fired on initialization. stupid me. Top Post attachment updated

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

                                            On mac the plugin still does not work, now the Ruby Console appears in blank.

                                            "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
                                            • 3
                                            • 4
                                            • 5
                                            • 36
                                            • 37
                                            • 3 / 37
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement