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

    [Plugin] LaunchIt v 1.4 (14 oct 2009)

    Scheduled Pinned Locked Moved Plugins
    30 Posts 12 Posters 41.3k Views 12 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.
    • G Offline
      gavvy
      last edited by

      here is the change of mine !

      I add these to change the command list easy ,but is there any ways to read the command listfile directly?

      AND the attachment is the plugin-GUI I changed

      Ps: I think doubleKlick is better than oneclick πŸŽ‰

      #命什ε…₯ε †
      @Cpath = File.dirname(FILE)
      @Cbarset = Set.new
      Ctbs = Dir[@Cpath +"/A4_launchit"+ "/*.txt"]

      Ctbs.each do |tb|
      IO.readlines(tb).each do |cmd|
      next if cmd[0, 1] == "#"
      #cmd, cmt = cmd.split("#")
      next if cmd.nil?
      cmd.strip!
      @Cbarset = @Cbarset.insert cmd

      	@Cbarset.each do |ca|
      		$launchitcmd.push ca.split("|")[0..1]
      	end
      end
      

      end


      GUI.jpg

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

        great stuff! it's cleaner to have commands in a separate txt. I suggest you share your whole script (as a branch?)

        Does anybody have experience with online code hosting ? like code.google.com ? Is there a branching feature to allow deviation from the main code ?

        Regarding your question about automatic command extraction, I think this could be done by using the IO.readline to read all plugins and look for the lines which populate the menu and context (right-click) menu.

        As I wrote in the first post, look for the

        .add_item("
        
         string in all the rubies, after the double quote, there usually is a command name, and the action
        
        1 Reply Last reply Reply Quote 0
        • tbdT Offline
          tbd
          last edited by

          nice work a4chitect and thanks for putting my scripts as an example πŸ˜‰

          I like github.com for hosting source and allows forking and if you want to learn about check the online book about Git

          SketchUp Ruby Consultant | Podium 1.x developer
          http://plugins.ro

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

            tbd: you're welcome. will look into the github, thx

            1 Reply Last reply Reply Quote 0
            • S Offline
              stanmarsh
              last edited by

              hello a4rchitect,

              i was just thinking if this could combine and work with pluginloader by alexschreyer to load plugins, then use launchit as the front-end.
              pluginloader link
              http://www.alexschreyer.net/projects/plugin-loader-for-sketchup/

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

                Added a load of plugins but only one ever shows up by adding the

                if(defined? $launchitcmd == nil)
                   $launchitcmd = []
                end
                
                $launchitcmd.push ["Command name","Command action"]
                

                Bit, but only one ever shows up.

                seems to be in alphabetical order, so weld.rb was the only one that would load, moved out of the folder then it was webconsole.rb and so on.

                Any ideas?

                http://remusrendering.wordpress.com/

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  @a4chitect said:

                  tbd: you're welcome. will look into the github, thx

                  don't let this stop you from working on the plugin. Distributed version control software is nice, but can have a lengthy learning curve (my experience, at least.) If you're in it for the long haul, then learning to use git or mercurial is well worth the effort. If this is an occasional endeavor - maybe not so much.

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    I was playing around with speech, and this could turn out to be a good interface for voice command control of SketchUp. It's not quite working - I can speak the word and it gets typed in the filter box, but for whatever reason the list is not filtered.

                    Hi

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

                      doesn't seem to work on macs too well but... πŸ˜„

                      this is built into OS X (it's not SU specific.. all apps have this ability)

                      same deal, start typing some letters and all the options start popping up etc.. if you hover over a command for a second, it's path will be shown as well.. skindigo, fredo, etc works fine too..

                      it's also sort of smart in that it won't display commands that aren't possible at the time (for instance, redo won't show up in the search if there's nothing to redo)

                      i don't have anything to test it with but i'm almost positive voice cmmd will work.

                      [flash=640,385:3v2nt73s]http://www.youtube.com/v/1HBmYx3w3W0&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6[/flash:3v2nt73s]

                      i'll add this.. it's a cool feature but the only time i use it is for obscure commands or when learning a new app.. once you know an app, shortcut keys are way better..

                      dotdotdot

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

                        Jim: I suppose that using speech for input doesn't trigger the OnKey event in the javascript - to perform the search

                        Jeff: I envy you - because the built-in OS X functionality looks great. The whole purpose and idea of launchit was, that my plugins menu won't fit on the screen anymore, and gets 'randomized' very often - because of new plugin installations. I agree that using keyboard shortcuts is way better. I think that Google should consider integrating the shortcut preferences into the GUI. It provides the functionality of searching for commands already, but serves only to assign shortcuts.

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jim
                          last edited by

                          How's the git repo coming?

                          Hi

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

                            Jim: I gave up on git or any other code repos for the time being. This plugin would probably not get developed by anyone else πŸ˜„

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by

                              @a4chitect said:

                              Jim: I gave up on git or any other code repos for the time being. This plugin would probably not get developed by anyone else πŸ˜„

                              I can understand. But I did actually want to look at this as the menu for a "Protable Plugins" project to create a plugins folder people can carry with them on a portable device.

                              Hi

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

                                you are welcome to use/reuse/change the code πŸ˜‰

                                I would love someone to upgrade the command-extraction routine from present ruby files, the current version is weak (fails at extracting fredo6 commands, dynamic commands, and actually at all not simple ones)

                                I was hoping that all visiting ruby developers could agree on one method of the sketchup-top-menu and context-menu population, which could simplify any GUI replacement projects.

                                Even at this stage a GUI replacement in html+javascript could be easily done, thanks to the wonderful sketchup-ruby architecture.

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

                                  πŸ˜’
                                  oh NO ,
                                  IN YOUR V1.4 I get a lot of error BECAUSE OF your html FILES
                                  is there times for us to disscusion through MSN or QQ?
                                  I have some idea to your plugins

                                  1 Reply Last reply Reply Quote 0
                                  • O Offline
                                    orei
                                    last edited by

                                    if i regenerate the list of ruby... doesn't appear all my ruby script.. why?? i've so many ruby.. but in the list there are only a part

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

                                      now i have null your script and change some part of it .

                                      1. Just use the Java script to Filit or return the command name ,then index the command in the command array.
                                        because if you throuh the javascript to launch the below commands it get errors 😲
                                        ========
                                        Joint Push Pull|JointPushPull.execute 'J'|jointpushpull|jpp_j|Joint Push Pull
                                        Vector Push Pull|JointPushPull.execute 'V'|jointpushpull|JPP_V|Vector Push Pull
                                        Normal Push Pull|JointPushPull.execute 'N'|jointpushpull|JPP_N|ζ²Ώζ³•ηΊΏζŒ€ε‡Ί
                                        Undo Push Pull|JointPushPull.redo|jointpushpull|JPP_Undo|θΏ”ε›ž
                                        RDC_ROUND|RoundCorner.launch :RDC_ROUND_ ||RDC_icon_Round_16|Round corners in 3D
                                        RDC_SHARP|RoundCorner.launch(:RDC_SHARP_, { :sharp => true }) ||RDC_icon_Sharp_16|Sharp corners in 3D
                                        RDC_BEVEL|RoundCorner.launch(:RDC_BEVEL_, { :profile_type => ['C', 1] }) ||RDC_icon_Bevel_16|Bevel edges and corners
                                        =======

                                      the index code

                                       ame=$launchitcmd.find{|n|n.index(params.to_s)}
                                      

                                      so i change to just to return the command name to ruby.

                                      1. I try to use the winole.so to connect to the access file ,and the Excel files ,it work well and fast, πŸ˜„ but it must work on the mechine which have install the sofeware.

                                      1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        haynesc
                                        last edited by

                                        how comes not all my plugins get loaded into the menu 'weld' is not there for eg ...

                                        1 Reply Last reply Reply Quote 0
                                        • EdsonE Offline
                                          Edson
                                          last edited by

                                          forgive me for being a bit on the dumb side, but this first post could declare what the plugin is supposed to do. it is only through reading the whole thread that one is able to understand its function.

                                          edson mahfuz, architect| porto alegre β€’ brasil
                                          http://www.mahfuz.arq.br

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

                                            hi a4chitect!! i installed your launchit plugin in my sketchup plugins folder... unfortunately when i start sketchup the following message appears

                                            Error Loading File A4_launchit.rb
                                            undefined method `file_loaded?' for #<Object:0xbd292d0 @ignorelist=["launchit", "indigo"]>

                                            what should i do??

                                            when you fail at something....you haven't really failed...you've found one way the thing will not work out

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

                                            Advertisement