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

    Hi am a newbie here, starting scriptwriting

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 231 Views 4 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.
    • T Offline
      Thelma
      last edited by

      Hi I am just starting scriptwriting for sketchup. I am trying to write a script that will produce a sliding louvered panel in a frame. I have done tutorials from the sketchup website, so I modelled the stairs and an input box seperately, but I do not know how to use these together, or how to even start writing a script for a louvered panel. I am finding it hard to find any tutorials or books to help. Can anyone give me any advice? Know of any good tutorials?

      Thankyou
      πŸ˜•

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

        Make a written set of instructions how the script will work - almost the 'Instructions' - that will help you work out how to structure your tool,
        e.g. Select 'Louvre Panel' from Plugins Menu
        In then Dialog that opens
        Enter Length, Width, Depth, Frame-Width, Frame-Width, Louvre-Blade-Size, Louvre-Blade-Spacing, Louvre-Blade-Angle etc etc
        OK
        Component is made and attaches to cursor
        Pick Insertion point...

        Now you know you need to have these main bits in your script:
        See other tools for examples of structuring a script... there's also are tutorial available here... http://www.sketchucation.com/tutorialsa/
        Wrap you parts inside a Method/Class called say ThelmaLouvre...
        Menu - there are lots of examples of this inside free scripts you can download - this is the last bit to write !
        Dialog - you already have some examples of how to make a dialog - see other scripts for examples... To check that your dialog is returning what you expect use puts xxxx an see the content in the Ruby Console.
        Make Component.
        Tool using MouseMove to insert it...
        When you have some bits working ask again for detailed help...

        TIG

        1 Reply Last reply Reply Quote 0
        • honoluludesktopH Offline
          honoluludesktop
          last edited by

          Am a beginner too. What helps me understand the SU ruby api, is to code snippet with "Webconsole". The tutorial above has a link to it:-)

          1 Reply Last reply Reply Quote 0
          • T Offline
            Thelma
            last edited by

            Thankyou very much, I will try these suggestions out

            πŸ˜„

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use. πŸ€“

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

              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