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

    Ruby Script Video Tutorial - add Construction Points

    Scheduled Pinned Locked Moved SketchUp Tutorials
    sketchup
    7 Posts 7 Posters 2.3k Views 7 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.
    • Chris FullmerC Offline
      Chris Fullmer
      last edited by

      Ok, this is my first attempt at a real time, script writing tutorial. I might do another here shortly. I know some people are not fond of my videos, so I've done this to spite them 😄 And I've heard some people like the videos a lot, so those people are allowed to watch and listen.

      But I warn you, this is Ruby scripting in real time. So its not super duper exciting, unless you like Ruby or want to learn to script.

      It's only about 6 lines of code, so you can't get too confused I hope. Here are links to some of the methods I use in the video:

      Model
      Entities
      add_cpoint

      And as a note, rand(100) will never return the number 100. 99 is the highest it goes. But it can return 0.

      All right, on to the video.

      [flash=725,945:33apxxdn]http://chrisfullmer.com/forums/ruby_cpoint.swf[/flash:33apxxdn]

      or download it here if you want to play it from your computer. (This is also handy if the movie is too tall for your Browser window): http://chrisfullmer.com/forums/ruby_cpoint.swf

      Hope that helps. If it does, I might do more of these. I can show how to write a simple multiple pushpull script in about 10 lines of code next.

      Chris

      Lately you've been tan, suspicious for the winter.
      All my Plugins I've written

      1 Reply Last reply Reply Quote 0
      • Rich O BrienR Offline
        Rich O Brien Moderator
        last edited by

        Thanks for a great Tutorial.

        I've little to no experience with Ruby but found this very informative and eye opening. Amazing how easy it is to understand yet hard to grasp?

        Now I appreciate even more the effort and talent that goes into creating the excellent scripts you guys produce

        Thanks

        Download the free D'oh Book for SketchUp 📖

        1 Reply Last reply Reply Quote 0
        • E Offline
          Ecuadorian
          last edited by

          Thanks for keeping encouraging us to try Ruby, Chris. 👍

          I like your video tutorials, actually, as I find text+images tutorials harder to follow. (I know, "people living in glass houses... 😳 )

          -Miguel Lescano
          Subscribe to my house plans YouTube channel! (30K+ subs)

          1 Reply Last reply Reply Quote 0
          • D Offline
            d12dozr
            last edited by

            @ecuadorian said:

            I like your video tutorials, actually, as I find text+images tutorials harder to follow.

            +1

            3D Printing with SketchUp Book
            http://goo.gl/f7ooYh

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

              Thanks for a great tutorial. Ruby is something that I would really like to learn. I would assume that it will require so much time that I will never start learning it. Anyway, this kind of tutorial really makes me think that maybe I should still think about it.

              1 Reply Last reply Reply Quote 0
              • X Offline
                xrok1
                last edited by

                OK, stop pissing around and get back to writing your awsome scripts now! 😠

                🤣

                “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                http://www.Twilightrender.com try it!

                1 Reply Last reply Reply Quote 0
                • MALAISEM Offline
                  MALAISE
                  last edited by

                  Thanks Chris for this new Ruby 's tutorial. Really helpfull 👍 👍
                  Dynamic explanations, what a good idea to follow step by step the code.
                  MALAISE

                  La Connaissance n'a de valeur que partagée

                  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