sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Need help syncing Plugins

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    6 Posts 3 Posters 244 Views 3 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.
    • brodieB Offline
      brodie
      last edited by

      I'm working on a method for syncing my plugins between my home computer and 2 different work computers. My idea was to use dropbox ( https://www.dropbox.com/referrals/NTM4NDI4MTk great app, check it out) to do this by placing my Plugins folder into dropbox and then have each of my SU apps reference that Plugins folder rather than the default location.

      However, I've been unable to find out how/if I can redirect SU to look for the Plugins folder in a new location. Is this possible?

      -Brodie

      steelblue http://www.steelbluellc.com

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

        Make a script that is loaded from Plugins but loads any rb files in the New Folder...

        It needs to make a list of all rb/rbs in the folder and load them in turn...

        Just like the loaders of complex scripts load the files inside their own sub-folders - like my '2D Tools'... However if scripts have absolute paths rather than relative paths you might get some problems...

        TIG

        1 Reply Last reply Reply Quote 0
        • brodieB Offline
          brodie
          last edited by

          TIG,

          Sounds a bit yucky on 2 accounts. 1) If I understand you correctly, I'd have to update the script every time I added/deleted a plugin. If it's that much trouble I'll stick with my current frustration. 2) I don't know carp about writing scripts.

          Nevertheless, thanks for an answer. At least it sounds like I'm not missing something obvious. I was hoping I was just missing something in Preferences where I could redirect SU to look elsewhere for the Plugins folder.

          Maybe there's some other creative answer/hack out there?

          -Brodie

          steelblue http://www.steelbluellc.com

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

            @unknownuser said:

            TIG,

            Sounds a bit yucky on 2 accounts. 1) If I understand you correctly, I'd have to update the script every time I added/deleted a plugin. If it's that much trouble I'll stick with my current frustration. 2) I don't know carp about writing scripts.

            Nevertheless, thanks for an answer. At least it sounds like I'm not missing something obvious. I was hoping I was just missing something in Preferences where I could redirect SU to look elsewhere for the Plugins folder.

            Maybe there's some other creative answer/hack out there?

            -Brodie

            1. The script would just load ALL rubies it found so no rewriting needed BUT
            2. Scripts with absolute paths hard-coded will fall over - but at least you'll be told what they are...

            TIG

            1 Reply Last reply Reply Quote 0
            • brodieB Offline
              brodie
              last edited by

              Gotcha, that may be better than I thought. I may have found an alternative workaround on the Dropbox side rather than the SU side. It involves creating a windows Junction which points from the default Plugins folder to a Plugins folder placed into Dropbox. I'll take a crack at it tonight and report back.

              If anyone cares to look into it in the meantime the how-to is here http://wiki.dropbox.com/TipsAndTricks/SyncOtherFolders

              -Brodie

              steelblue http://www.steelbluellc.com

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

                Sounds like a one liner require_all("/any/folder") is all you need (defined in sketchup.rb.)

                But as TIG said, not all scripts are made to work from any folder.

                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