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

    Startup Folder plugin

    Scheduled Pinned Locked Moved Plugins
    13 Posts 7 Posters 1.1k 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.
    • Rich O BrienR Online
      Rich O Brien Moderator
      last edited by

      Nice.....

      now this has been covered before but thought i'd see if it's possible using startup? Could you have a script that loads/unloads certain scripts? I realise that you'd have to navigate to your plugins folder to 'load' your chosen script starter .rb but maybe this could be automated. Similar to the 'Template Chooser' splasher that SU has?

      I'm rambling....i'll stop

      Thanks Jim

      Download the free D'oh Book for SketchUp πŸ“–

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

        Choosing scripts to load when SketchUp starts easy, but there is no way to unload them. You would need to close/open SketchUp to switch plugin sets, otherwise they would continue to accumulate.

        I should mention it's "easy" only of the scripts that are written to cooperate. A system like you describe would probably work by creating sub-folders to organize the sets of plugins. Many of the more recent plugins will be able to load from a location other than the Plugins folder, but others would require editing. That said, I am not against assisting in the creation of such a plugin. I am also a little wary of something like this creating support problems (extra work) for other authors.

        I wouldn't recommend using this plugin (Startup Folder) as a plugin manager - it's just not robust enough to tackle that job. It's really meant for a few small things users might want to do when starting a new model.

        Hi

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

          @jim said:

          I should mention it's "easy" only of the scripts that are written to cooperate. A system like you describe would probably work by creating sub-folders to organize the sets of plugins. Many of the more recent plugins will be able to load from a location other than the Plugins folder, but others would require editing. That said, I am not against assisting in the creation of such a plugin. I am also a little wary of something like this creating support problems (extra work) for other authors.

          This is precisely what Rick's Organizer script does. Described almost identically to his script.

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

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

            @chris fullmer said:

            This is precisely what Rick's Organizer script does. Described almost identically to his script.

            So it just needs a little gui for picking which folders to load at startup.

            Hi

            1 Reply Last reply Reply Quote 0
            • JD HillJ Offline
              JD Hill
              last edited by

              @jim said:

              ...this plugin...select[s] the tool on new and opened models instead of the tool.

              Heh, I wrote that one too. It gives a whole new meaning to this:

              Developer - Bella Render

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

                I added a Windows-specific snippet to the first post - adds Sketchup version to the window title.

                Just download it and put it in the Startup folder. Unfortunately, the version gets lost when the model is saved; and I'm sot sure it is within the scope of this plugin to fix it.

                This requires the Win32API.so (attached) file to be present in your Plugins folder. Win32API.so is a windows-specific library distributed with the Ruby language. It is used to make Windows function calls from Ruby. Mac users can not use this file.


                682.png


                Win32API.zip

                Hi

                1 Reply Last reply Reply Quote 0
                • Z Offline
                  Zacchia
                  last edited by

                  I installed in on XP but deleted it again after because i guess i do not need. So now SU starts still with the select tool... By default is starts with the pen, right? I mean i like it when it starts with the select tool but i am just wondering.

                  1 Reply Last reply Reply Quote 0
                  • CadFatherC Offline
                    CadFather
                    last edited by

                    yes that is it - and you can have other scripts startup as well (like no shadows etc..)

                    1 Reply Last reply Reply Quote 0
                    • EarthMoverE Offline
                      EarthMover
                      last edited by

                      Great plugin!

                      I'm trying to use it to automatically load the "Default Scenes" plugin and if possible to disable scene transitions and set the Scene delay to 0 seconds. This will afford quick access to all Iso views at startup.

                      So far I've installed the plugin, enabled it in my Extensions and copied the Default_scenes.rb script into the Startup folder.

                      When I start sketchup there are no loaded scenes, so not sure what I did wrong.

                      Also, is there a quick line of code that affect the animation transitions as stated above?

                      Thanks!

                      EDIT - Screenshots of my folder and extensions. I'm not getting the select tool loading on startup either, so something must be wrong.


                      Extension_enabled.png


                      Startup_Issue.png

                      3D Artist at Clearstory 3D Imaging
                      Guide Tool at Winning With Sketchup
                      Content Creator at Skapeup

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

                        This isn't a plugin manager - don't put other plugin files in the StartUp folder. You just need a few lines to execute default scenes on startup.

                        Assuming you have default scenes installed as normal (in Plugins), the file in Startup would look something like this:

                        
                        # execute default scenes at startup
                        require "Default_Scenes.rb"
                        DEFSCENES.execute
                        
                        

                        Or to be prompted each time:

                        
                        # execute default scenes at startup
                        require "Default_Scenes.rb"
                        if (UI.messagebox("Create Default Scenes?", MB_YESNO) == IDYES)
                            DEFSCENES.execute
                        end
                        
                        

                        Of course, this will add scenes to opened models, too. Maybe I need to separate onNewModel from onOpenModel?

                        Or maybe you could use a Template.

                        To set the trasnsition time and delay, add these lines:

                        
                        Sketchup.active_model.pages.each { |page|
                         page.transition_time = 0
                         page.delay_time = 0
                        }
                        
                        

                        Hi

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

                          This may not have been such a good idea for a plugin. πŸ˜† For one, the messagebox keeps popping up as if onNewmodel is being called multiple times. I've removed the download for now.

                          Hi

                          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