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

    How do you make plug-ins for sketchup

    Scheduled Pinned Locked Moved Developers' Forum
    103 Posts 25 Posters 9.0k Views 25 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.
    • J Offline
      johnsenior1973
      last edited by

      @rayochoa said:

      do you think it would be a good idea to ask whaat to teach me?

      I don't.

      You're just developing an interest in making ruby's. That interest could last 2 days or it could last for years. If that interest is only going to last for a few weeks and you then move on to something else then any time that whaat has given to you will have been wasted.

      You've made a good start to learning ruby's because you're part of this forum and there will obviously be help here if you need it. But if you're asking for help then I think it should be limited at this stage to just asking openly on the forum for help, rather than making personal requests directly to people. If whaat, or anyone else, wants to help you then they can easily contact you to help you. I just feel it's a bit rude to ask publically on the forum for him to help you.

      1 Reply Last reply Reply Quote 0
      • majidM Offline
        majid
        last edited by

        maybe just some advise only? as an expert just some tips maybe from whaat will help us

        My inspiring A, B, Sketches book: https://sketchucation.com/shop/books/intermediate/2612-alphabet-inspired-sketches--inspiring-drills-for-architects--3d-artists-and-designers-

        1 Reply Last reply Reply Quote 0
        • RayOchoaR Offline
          RayOchoa
          last edited by

          yeah your right.

          CaR DeSiGnS bY mE
          http://ray-ochoa.com

          1 Reply Last reply Reply Quote 0
          • W Offline
            Whaat
            last edited by

            I wouldn't consider myself an expert. I am basically self-taught and with that comes lots of bad programming habits. I learned everything I know about Ruby scripting in the last 18 months from these sources:

            1. http://download.sketchup.com/OnlineDoc/gsu6_ruby/Docs/index.html (SketchUp Ruby API Developer's Guide)
            2. http://www.ruby-doc.org/docs/ProgrammingRuby/ (The Pragamatic Programmers Guide)
            3. Opening up other plugins with a text editor and trying to understand the code.
            4. Helpful people on SCF

            You should probably start by reading the fist few parts of 2) You might not understand everything at first, but when you start looking at 1) and 3), things will start to make more sense.

            You can't learn this sutff overnight. Start off with something very simple. There are lots of helpful people on the forums so best of luck!

            SketchUp Plugins for Professionals

            1 Reply Last reply Reply Quote 0
            • majidM Offline
              majid
              last edited by

              thanx...whatt .maybe its the best advise... so , no time waste for you and helpful for seekers 😄

              My inspiring A, B, Sketches book: https://sketchucation.com/shop/books/intermediate/2612-alphabet-inspired-sketches--inspiring-drills-for-architects--3d-artists-and-designers-

              1 Reply Last reply Reply Quote 0
              • G Offline
                gohch
                last edited by

                hi, I'm new to Ruby too. Just thought of sharing a book that i bought which turned to be a great self learning guide for someone that knows nothing about Ruby (it also happened to be the only book i could find about Ruby in my part of the world 🎉 )

                Begining Ruby From Novice to Professional by Peter Cooper
                http://www.apress.com/book/view/9781590597668

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BTM
                  last edited by

                  Heh, I've been wondering how to make ruby scripts aswell. Apparently if functions are part of ruby, so I have a start 😆

                  Pilou, moi aussi je sais comment de parler le français! 😉 C'est pas une langue très dificile à apprendre, mais il y a trop de verbes, et c'est difficile de savoir si quelque chose est masculin ou feminin. 😉 En anglais, nous avons pas de masculin ou feminin pour les objets non-vivants 😆

                  Aussi, qu'est ce que ton signature veut dire? "Is beautiful that please without concept!" en français veut dire "Est belle que s'il-vous-plait sans concept" Je ne le comprend pas... 😕

                  1 Reply Last reply Reply Quote 0
                  • Chris FullmerC Offline
                    Chris Fullmer
                    last edited by

                    Are you actually interested BTM? There's been quite a few of us Ruby newbs hanging out here lately, and I think we've mostly shown that the learning goes pretty fast once you get into it.

                    I'm currently putting together a tutorial for the SCF tutorials on how to start learning Ruby. But you really don't need to wait for anything like that. Start teaching yourself Ruby using Chris Pine's ruby tutorial. Its a great place to get started with Ruby. Then once you get the hang of the basic syntax, its time to dig into the SketchUp specific stuff.

                    Chris

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

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BTM
                      last edited by

                      what text editor do you use to write code, Chris?

                      1 Reply Last reply Reply Quote 0
                      • jeff hammondJ Offline
                        jeff hammond
                        last edited by

                        @unknownuser said:

                        How do you make plug-ins for sketchup

                        me?
                        by begging 😎

                        dotdotdot

                        1 Reply Last reply Reply Quote 0
                        • takesh hT Offline
                          takesh h
                          last edited by

                          @unknownuser said:

                          what text editor do you use to write code, Chris?

                          I guess this thread will answer to most of your questions about Ruby.
                          http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=10142&p=65928#p65928

                          1 Reply Last reply Reply Quote 0
                          • Chris FullmerC Offline
                            Chris Fullmer
                            last edited by

                            I personally use notepad++ currently. And I use Jim's Web Console inside of SU. I use it to test chunks of code and then I copy them into notepad++ once I get things running as expected.

                            Chris

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

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              BTM
                              last edited by

                              ...any mac versions or mac text editors? I thought I could use textedit, but it doesn't have any way to save as ruby files. Neither does pages, but word seems to be able to save as ruby if I type .rb in manually. Still, a mac text editor would help.

                              1 Reply Last reply Reply Quote 0
                              • jeff hammondJ Offline
                                jeff hammond
                                last edited by

                                i think a lot of the mac heads use TextMate

                                Link Preview Image
                                TextMate: Text editor for macOS

                                favicon

                                (macromates.com)

                                dotdotdot

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

                                  Hi

                                  Smultron can do it on mac, it's free.

                                  regards

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

                                    My MacBook has Xcode or something like that (I'm not a "Mac person" - I just got one for self-preservation for dual-platform SU ruby development 😄 ). It's color coded and has auto-completion capabilities as you type.

                                    RickW
                                    [www.smustard.com](http://www.smustard.com)

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

                                      @rickw said:

                                      My MacBook has Xcode or something like that

                                      You are a lucky guy RickW, I can't find Xcode on my mac (perhaps I got to check my cd install to find xcode ?)

                                      I checked out this link and I'm not sure it's free.
                                      BTW, thanks for the info RickW

                                      Regards

                                      1 Reply Last reply Reply Quote 0
                                      • Chris FullmerC Offline
                                        Chris Fullmer
                                        last edited by

                                        This is some good info on Mac code editors. I'll include it in whatever little tutorial I get thrown together.

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

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          BTM
                                          last edited by

                                          I have Xcode too, downloaded smultron anyways, they both seem good, Xcode a little more complicated, but does have menus for picking the exact thing you want to make ( like ruby extentions), but I don't know which one's better. 😐
                                          ...Anyone out there have experience with these sorts of things?

                                          1 Reply Last reply Reply Quote 0
                                          • Chris FullmerC Offline
                                            Chris Fullmer
                                            last edited by

                                            Hey not too bad! Just keep that up and you're well on your way. Once you get the standard flow control methods down (which you have, the if/else/end, until/end, array.each do/end) your set. Then its time to dig into the sketchup API to see what methods/classes/modules that SketchUp has added to Ruby.

                                            Chris

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

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

                                            Advertisement