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

    [Plugin] Rain - v1.0.0 Beta

    Scheduled Pinned Locked Moved Plugins
    16 Posts 11 Posters 15.9k Views 11 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.
    • thomthomT Offline
      thomthom
      last edited by

      I'm currently rendering a model so I can't install and try the plugin right now.

      But I've been looking at the code - got a couple of suggestion:

      1. Why publish the plugin as a RAR - why not use RBZ so it can be installed directly from within SketchUp? (And no need for extra utilities to unpack.)

      2. You're using Sketchup.find_support_file to determine the path to your support folder. This can give you the wrong path. Plugins isn't installed in the main SketchUp Plugins folder. I for instance install my plugins to a shared Dropbox folder - I cannot do that with plugins that use Sketchup.find_support_file. There's also issues where many OSX users place their plugin in their USER folder instead of the ROOT folder. Because of this it's best to get the actual path of your files using the magic constant __FILE__. Read more here: http://www.thomthom.net/thoughts/2012/09/sketchup-plugins-can-be-installed-anywhere/

      3. Strings are very slow! Avoid using them whenever you can for stuff like states etc. Use Symbols or Integer constants instead. And .typename for determining the type of entity is one of them things that really bothers be about the API docs - because this method is horribly slow since it's returning string. Instead use .is_a?( Sketchup::ComponentInstance ). Read more: http://www.thomthom.net/thoughts/2011/12/never-ever-use-typename/

      4. Your Thunder Effects routine can be re-factored to not repeat it self. You only change a couple of values for each repeated pattern there. Perfect candidate for a method with arguments. Much easier to maintain when you need to make changes.

      Hope this helps.

      I'll get around to try it out in action when I'm done with my renders.

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

      1 Reply Last reply Reply Quote 0
      • iichiversiiI Offline
        iichiversii
        last edited by

        This is fantastic, the effects are very effective 👍

        Bring on the Rain...

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          Very tricky one! 😎

          Next will be to show the level of water grows over the volumes! ☀

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

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

            What a cool idea!

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

            1 Reply Last reply Reply Quote 0
            • mitcorbM Offline
              mitcorb
              last edited by

              Bravo to you, Renderiza.

              I take the slow, deliberate approach in my aimless wandering.

              1 Reply Last reply Reply Quote 0
              • renderizaR Offline
                renderiza
                last edited by

                Thanks everyone for your comments! 💚

                thomthom – This type of feedback is very valuable and I’ll be sure to study your suggestion carefully so I can apply them later.

                [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                1 Reply Last reply Reply Quote 0
                • EscapeArtistE Offline
                  EscapeArtist
                  last edited by

                  I'll be darned. Never would've thought of that within SU. Cool, and thanks for sharing!

                  1 Reply Last reply Reply Quote 0
                  • 3 Offline
                    3eighty
                    last edited by

                    The water is so real..Excuse me. I have to visit the men's room...

                    1 Reply Last reply Reply Quote 0
                    • SimFonIA_teamS Offline
                      SimFonIA_team
                      last edited by

                      Hello Renderiza,

                      That is a very interesting and usefull job, thank you )). in a recent message you tried to link your plugin with our animation tool, does it work?

                      Give life to your ideas : http://www.simfonia.fr/SAT/

                      1 Reply Last reply Reply Quote 0
                      • renderizaR Offline
                        renderiza
                        last edited by

                        EscapeArtist: After watching “Advanced Ruby Scripting for Sketchup” by Scott Lininger I started to get interested in doing these kinds of stuff. Here is a link; http://www.youtube.com/watch?v=FALvwBN5-hc

                        3eighty: I hope that is not a concurrent symptom problem.

                        SimFonIA_team: You guys are awesome thanks for your “SimFonIA Animation Tools”!

                        To answer your question I have been able to run animations made with your tools while simultaneously running animations that I have coded with my own scripts like this rain plugin for example. A current workflow of mine is to try animating my idea with your tool before trying it on code because I find it to be faster that way.

                        One thing I have not figure out is to make your record video option to recognize my animation but I recently got “Fraps” to record videos which can solve this problem. I need to check if I can disable the “Elapsed” time but that is not that big of a deal.

                        A future plan of mine is to be able to share animations like flying birds, moving trees, clouds, ect… with your tool through Trimble’s Warehouse since I feel one of the strongest feature of your plugins is that the animation data stays with the object itself.
                        Thanks!

                        [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                        1 Reply Last reply Reply Quote 0
                        • SimFonIA_teamS Offline
                          SimFonIA_team
                          last edited by

                          Hello Renderiza,

                          It is interesting to have your feedback. We are surprised by your workflow (first using SAT before going into code) : very interesting.

                          About simultaneous recording of rain_plugin and SAT I suggest you send an email to our developer (I am just an awful physicist). He will give you technical information and search for a solution. You can join him there: bugreport.sat[arobase]simfonia.fr

                          Best regards,

                          Give life to your ideas : http://www.simfonia.fr/SAT/

                          1 Reply Last reply Reply Quote 0
                          • renderizaR Offline
                            renderiza
                            last edited by

                            That is very cool to know thank you!

                            [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

                              Rafa, felicidades great plugin. keep on the good work.

                              CHALUPA

                              1 Reply Last reply Reply Quote 0
                              • renderizaR Offline
                                renderiza
                                last edited by

                                Hola,

                                Que bueno saber que personas que hablan español visitan este sitio.

                                Muchas gracias!

                                [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post
                                Buy SketchPlus
                                Buy SUbD
                                Buy WrapR
                                Buy eBook
                                Buy Modelur
                                Buy Vertex Tools
                                Buy SketchCuisine
                                Buy FormFonts

                                Advertisement