sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Preparing for SmustardOrganizer script

    已排程 已置頂 已鎖定 已移動 Developers' Forum
    56 貼文 11 Posters 5.8k 瀏覽 11 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • R 離線
      RickW
      最後由 編輯

      I'm working on re-releasing Organizer.rb

      For any authors who want to be Organizer-compatible, here's the REVISED protocol for adding menu items:

      # Supports Organizer.rb
      	$submenu ? (organizer = $submenu) ; (organizer = UI.menu("Plugins"))
      	organizer.add_item("ItemName") { action }
      

      $submenu is the global variable used by Organizer as it traverses the folders located in the Plugins folder. It creates a submenu consisting of the folder name, then adds the scripts in that folder to the submenu. Scripts can have their own submenus as well:

      # Supports Organizer.rb
      	$submenu ? (organizer = $submenu) ; (organizer = UI.menu("Plugins"))
      	submenu=organizer.add_submenu("Name")
      		submenu.add_item("ItemName1") { action }
      		submenu.add_item("ItemName2") { action }
      		submenu.add_item("ItemName3") { action }
      

      Please note, the beginning comment line is important - it prevents the organizerEdit script from trying to automatically edit the script to make it compliant. It can exist at the beginning of the file to speed the process.

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

      1 條回覆 最後回覆 回覆 引用 0
      • R 離線
        RickW
        最後由 編輯

        Thanks to everyone who answered the poll!

        I updated the protocol to something MUCH easier for authors to implement (and for the OrganizerEdit script to modify), so hopefully it will have a nearly comprehensive success rate for modifying scripts to be Organizer-friendly.

        Thanks again - and check it out at http://www.smustard.com/script/Organizer

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

        1 條回覆 最後回覆 回覆 引用 0
        • jim smithJ 離線
          jim smith
          最後由 編輯

          Thanks Rick for re-working the organizer. Eagerly awaiting!

          Jim

          "Out of clutter find simplicity,
          from discord find harmony,
          In the middle of difficulty lies opportunity"
          Albert Einstein

          1 條回覆 最後回覆 回覆 引用 0
          • R 離線
            RickW
            最後由 編輯

            Glad to do it. The difficult part is the rewriter script (!) that reads all the scripts and attempts to rewrite their menu entries to work with Organizer. There are just a few scripts that are type formatted in a way it doesn't understand, and it simply ignores those scripts (which won't be organizeable unless manually edited). It creates a log file to indicate which files got edited, so you know which ones can be organized.

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

            1 條回覆 最後回覆 回覆 引用 0
            • J 離線
              Jim
              最後由 編輯

              Not only an organizer, but a script installer; goes out on the Internet, downloads the plugin, extracts it to the correct folder, and cleans up.

              Hi

              1 條回覆 最後回覆 回覆 引用 0
              • R 離線
                RickW
                最後由 編輯

                Organizer is re-released!

                favicon

                (www.smustard.com)

                I also changed the protocol to something MUCH more author-friendly, so everyone can easily be Organizer-friendly 😄

                Thanks to all for the input...

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

                1 條回覆 最後回覆 回覆 引用 0
                • KrisidiousK 離線
                  Krisidious
                  最後由 編輯

                  Rick is there any other way to pay? I hate Paypal, they are demon spawn... I've already bought a few scripts from you, but I can't keep giving money to Paypal... it hurts me deep inside...

                  By: Kristoff Rand
                  Home DesignerUnique House Plans

                  1 條回覆 最後回覆 回覆 引用 0
                  • jujuJ 離線
                    juju
                    最後由 編輯

                    OK, bought it (and some other goodies, hmmm). I see we need to backup the plugins folder, no problem. I was wondering if the script only works for enhancements to the "plugins" folder or if it can be used for the scripts that goes into the "tools" folder as well? If so, will you have to go through the same steps as for the "plugins" folder?

                    Can one rather have all the scripts (even the ones that need to go in the "tools" folder) in a separate folder in "plugins" or the like and have the organizer script build the menu for you in SU6?

                    Save the Earth, it's the only planet with chocolate.

                    1 條回覆 最後回覆 回覆 引用 0
                    • R 離線
                      RickW
                      最後由 編輯

                      @unknownuser said:

                      Rick is there any other way to pay?

                      Sure - print off your shopping cart and send it with a cashier's check (I'll send you an address), and when the check clears, I will enter your purchase info into our database and send you a download email. We've looked into Google payments, but haven't worked it into our site yet.

                      @unknownuser said:

                      I was wondering if the script only works for enhancements to the "plugins" folder or if it can be used for the scripts that goes into the "tools" folder as well?

                      It was written specifically for the Plugins folder, since that's where most scripts live, and it's the Plugins menu that tends to get the most cluttered. Out of curiosity, what all do you have in your Tools folder? I'd be interested to see a screenshot of that...

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

                      1 條回覆 最後回覆 回覆 引用 0
                      • jujuJ 離線
                        juju
                        最後由 編輯

                        Here we go Rick, I think it might only be the SoapSkinBubble ruby that's new in there, have added a few ruby scripts lately and I didn't keep track of all of it.

                        Some of the ruby scripts insert themself in a few different places in the SU menu, maybe that is what is bugging me more than where the actual ruby file is found in the SU directories.

                        Have not tried the new script yet (but got it though - thx to you and Smustard), will check it out later.

                        http://www.sketchucation.com/forums/scf/sas/Ruby/SU6 Tools folder.JPG

                        Save the Earth, it's the only planet with chocolate.

                        1 條回覆 最後回覆 回覆 引用 0
                        • EdsonE 離線
                          Edson
                          最後由 編輯

                          @unknownuser said:

                          Out of curiosity, what all do you have in your Tools folder? I'd be interested to see a screenshot of that...

                          here you go, rick, now you know everything about me.

                          edson

                          http://www.sketchucation.com/forums/scf/sas/Ruby/edson SU6 Tool Folder.png

                          edson mahfuz, architect| porto alegre • brasil
                          http://www.mahfuz.arq.br

                          1 條回覆 最後回覆 回覆 引用 0
                          • EdsonE 離線
                            Edson
                            最後由 編輯

                            would you please let us mac users know when the mac version is working?

                            regards.

                            edson

                            edson mahfuz, architect| porto alegre • brasil
                            http://www.mahfuz.arq.br

                            1 條回覆 最後回覆 回覆 引用 0
                            • R 離線
                              RickW
                              最後由 編輯

                              What error message(s) do you get?

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

                              1 條回覆 最後回覆 回覆 引用 0
                              • R 離線
                                RickW
                                最後由 編輯

                                For those who just absolutely hate PayPal, I just signed up for Google Checkout. I can invoice you by email if you want to purchase. Just send me an email of your shopping cart, and I'll invoice you.

                                Download info will be emailed after the completion of the transaction.

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

                                1 條回覆 最後回覆 回覆 引用 0
                                • G 離線
                                  gata
                                  最後由 編輯

                                  Azuby has written his rbs scripts for the Tools folder. And RpTools stuff goes there too.

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • R 離線
                                    RickW
                                    最後由 編輯

                                    @gata said:

                                    Azuby has written his rbs scripts for the Tools folder. And RpTools stuff goes there too.

                                    That's right, someone put yamland date stuff in my Tools folder. I think it must have been RPS Space Designer when I tried it some time ago.

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

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • EdsonE 離線
                                      Edson
                                      最後由 編輯

                                      @rickw said:

                                      What error message(s) do you get?

                                      i am assuming this question was directed to me.

                                      well, actually i have not bought it yet. i read somewhere (probably in smustard) a statement that led me to believe some testing was going to be done before announcing that the script runs well on macs. i apologize if understood it wrong.

                                      thanks.

                                      edson

                                      edson mahfuz, architect| porto alegre • brasil
                                      http://www.mahfuz.arq.br

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • EdsonE 離線
                                        Edson
                                        最後由 編輯

                                        @unknownuser said:

                                        NOTE: There have been some issues reported with using this on Mac, so until they are resolved, this (unfortunately) is for PC only, for now. I will post a revised version when it works on Mac

                                        this is what i referred to in my other posting. from this i assumed one has to wait for a mac version.

                                        edson

                                        edson mahfuz, architect| porto alegre • brasil
                                        http://www.mahfuz.arq.br

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • R 離線
                                          RickW
                                          最後由 編輯

                                          I suppose it wouldn't be too hard to traverse the Tools folder as well, but could provide the "opportunity" for duplicate menu items if there are same-named subfolders in both Plugins and Tools. I have the suspicion, though, that items in the Tools folder will have fixed menus.

                                          .rbs files can't be edited by OrganizerEdit to be made to work with Organizer, so it will be up to the authors to accommodate the possibility prior to encryption.

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

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • jujuJ 離線
                                            juju
                                            最後由 編輯

                                            Rick, I'll have to run the organizer script every time I change (add / remove some) the ruby scripts right? I would assume so, just need to be clear on it.

                                            If so, I just add the scripts to the plugins folder and run the script again, that shouldn't have a negative effect on the scripts already "organized" right?

                                            Save the Earth, it's the only planet with chocolate.

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement