sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    I have been a Plugin Harlot

    Scheduled Pinned Locked Moved Plugins
    6 Posts 4 Posters 902 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.
    • kenK Offline
      ken
      last edited by

      Well, I have had a few days that I didn’t need to fire up Sketchup. Deadline met and finish for a couple of days. So I decided to make a clean install of Sketchup, re-install, one by one all my plugins. Make the hard decision which plugins to load or not to load. So now it looks as if I my have a working system.

      Fredo6, sorry about not getting back to you sooner. Had something I needed to get out. To let you know, now that I have made a complete re-install, of program and plugins, removing all the plugins that I never used, your program now works great. The TOS, does not grey out the group menu on the context menu as it did before. Thanks for your quick reply, and sorry about my not so quick reply. Money for food first.

      The real question I wish to ask.

      On to another note, I have a menu selection in the Tools menu that is called “Interact”. I can not figure out what this does. Any help would be appreciated. And this leads me to another topic.

      Is there any reason why scripts couldn’t start off the initials of the author, than followed by name used in the menu selection, followed by the actual menu location. Such that a script that removes all lines by me and placed in the tool menu, would be named. Ken_RemoveLines_Tool. This would really help in trying to determine where and what script is causing a problem.

      And does the “path = File.dirname(FILE)” allow a renaming of a script and still check to see it has been loaded. I have bought the book, Automatic Sketchup, just so I can figure out how to make menu items. A hard read for me, but I will keep on reading until I get it figured out.

      Well again thanks to all the plugin writers. Without you I would be retired and living the easy life. Darn, should I be thanking you? Yes I should, because using Sketchup is not work, but don’t tell my boss.

      Ken

      Fight like your the third monkey on Noah's Ark gangway.

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        @unknownuser said:

        On to another note, I have a menu selection in the Tools menu that is called “Interact”. I can not figure out what this does. Any help would be appreciated. And this leads me to another topic.

        That's "native" SU plugin; the dynamic component interact tool (the one you get with the finger button
        http://sketchup.google.com/crimages/sketchup-interactToolActive.png
        when the DC Toolbar is activated)

        Gai...

        1 Reply Last reply Reply Quote 0
        • kenK Offline
          ken
          last edited by

          @gaieus said:

          @unknownuser said:

          On to another note, I have a menu selection in the Tools menu that is called “Interact”. I can not figure out what this does. Any help would be appreciated. And this leads me to another topic.

          That's "native" SU plugin; the dynamic component interact tool (the one you get with the finger button
          http://sketchup.google.com/crimages/sketchup-interactToolActive.png
          when the DC Toolbar is activated)

          Well, darn, thanks. Guess I should start using dynamic components.

          Thank you for you quick reply.

          Fight like your the third monkey on Noah's Ark gangway.

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

            path = File.dirname(__FILE__) does what you think - it refers to the file itself, whatever name you have given it [or in this case wherever you have put it] - some 'hard-coded' scripts might have the file's name instead but you could spot that and edit it...

            TIG

            1 Reply Last reply Reply Quote 0
            • kenK Offline
              ken
              last edited by

              @tig said:

              path = File.dirname(__FILE__) does what you think - it refers to the file itself, whatever name you have given it [or in this case wherever you have put it] - some 'hard-coded' scripts might have the file's name instead but you could spot that and edit it...

              Thanks TIG

              What I wish to do is change all the scripts I can to use this file checking method,(I know, I probably used the "method" incorrectly" allowing me to rename the script to descriptive names, put the scripts that will work being loaded from another directory into a directory with a descriptive name, such as Editing Script, or Text Script, and be able to load either a script or the whole directory when I have use for their particular function. I have looked at quite a few scripts, and see that hard coding the loaded file name is not that all consistent. I will be doing one script at time, learning as I go.

              And TIG thanks to all your scripts, and the chance to look at the coding.

              Ken

              Fight like your the third monkey on Noah's Ark gangway.

              1 Reply Last reply Reply Quote 0
              • M Offline
                MartinRinehart
                last edited by

                @tig said:

                path = File.dirname(__FILE__) does what you think

                That's actually quite filled with issues. If your script said load '../relative/path/filename.rb' then File.dirname(__FILE__) is ../relative/path/. Better to use File.expand_path( File.dirname(__FILE__) ). That gets the full path and, on PC, drive letter.

                Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                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