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

    Window / Preferences / Extensions

    Scheduled Pinned Locked Moved Plugins
    9 Posts 4 Posters 1.6k 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.
    • bagateloB Offline
      bagatelo
      last edited by

      Why doesn't appear all of the scripts and plugins in the field Window / Preferences / Extensions? Which parameter does need to be included inside of the script so that it can be activated or disable in the field Window / Preferences / Extensions?
      Would it be possible to create keyboard shortcuts to activate or to disable scripts that appear in the field Window / Preferences / Extensions?
      It would be great if all of the plugins that we needed were loaded ON DEMAND for keyboard shortcuts.

      While the cat's away, the mice will play

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

        @bagatelo said:

        Why doesn't appear all of the scripts and plugins in the field Window / Preferences / Extensions? Which parameter does need to be included inside of the script so that it can be activated or disable in the field Window / Preferences / Extensions?
        Would it be possible to create keyboard shortcuts to activate or to disable scripts that appear in the field Window / Preferences / Extensions?
        It would be great if all of the plugins that we needed were loaded ON DEMAND for keyboard shortcuts.

        You can make any plugin as an 'extension' and register it as such, then the user has to choose to make it active. Once that's done it's active thereafter until you deactivate it and you have to restart SUp - so it doesn't remove it from menus etc immediately - also chopping and changing toolbars can cause chaos as we know...
        I never make any of my plugins as 'extensions' - frankly I don't think it's worth the hassle - if users doesn't want my tools they just need to remove the file(s) from the Plugins folder or rename them with a .txt suffix... so they stop auto-loading.
        There is no way to remove a plugin from menus, toolbars etc once it's been activated that session even if it were an 'extension', as deactivating an 'extension' only works at the next start of SUp - just like relocating/renaming a .rb file so it won't load in the future has no immediate affect as it's already loaded.............
        😕

        TIG

        1 Reply Last reply Reply Quote 0
        • bagateloB Offline
          bagatelo
          last edited by

          I know we cannot unload plugins, but only load them. I think about something never load all plugins automatic, but load plugins by keyboard shortcuts. I don't like to rename plugins extensions to not load or load. I think is more intelligent if we can control ALL plugins in Window / Preferences / Extensions.

          While the cat's away, the mice will play

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

            So to précis... you want every plugin to become an extension... so that users can switch them off/on ???

            TIG

            1 Reply Last reply Reply Quote 0
            • bagateloB Offline
              bagatelo
              last edited by

              As you wish

              While the cat's away, the mice will play

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

                Yes, I agree. Load as needed is better. It is not such a big trouble to reboot SketchUp to reset the tools. When only a few are loaded at a time, the toolbars can be managed.

                One thing I don't like is:

                284.png

                Much better to have a new, longer list.

                But we can't read or write the Extensions registry keys, so a completely separate system would need designed.

                Hi

                1 Reply Last reply Reply Quote 0
                • bagateloB Offline
                  bagatelo
                  last edited by

                  I try to change scripts to show in Window / Preferences / Extensions the possibility to load or not load when Sketchup stars, but, in some cases, appears two times in that field. Why this is happen?

                  While the cat's away, the mice will play

                  1 Reply Last reply Reply Quote 0
                  • bagateloB Offline
                    bagatelo
                    last edited by

                    What I need to insert within the code of each plugin that causes the plugin to appear within each of the configuration window "Window / Preferences / Extensions"?

                    While the cat's away, the mice will play

                    1 Reply Last reply Reply Quote 0
                    • Didier BurD Offline
                      Didier Bur
                      last edited by

                      Hi,
                      Below is an example of one of my extensions:

                      require 'extensions.rb'
                      require 'LangHandler.rb'
                      # Extension Manager
                      $uStrings = LanguageHandler.new("Layer Manager")
                      Layer_Manager_Extension = SketchupExtension.new("Layer Manager", "Layer Manager/fr_layer_manager_v5.rb")
                      Layer_Manager_Extension.description="Plugin description goes here")
                      Layer_Manager_Extension.name= "Layer Manager"
                      Layer_Manager_Extension.creator = "Didier Bur"
                      Layer_Manager_Extension.copyright = "11.2005, CRAI - Didier Bur"
                      Layer_Manager_Extension.version = "1.0 for SU v5"
                      Sketchup.register_extension Layer_Manager_Extension, true
                      

                      DB

                      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