I have been a Plugin Harlot
-
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
-
@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
when the DC Toolbar is activated) -
@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
when the DC Toolbar is activated)Well, darn, thanks. Guess I should start using dynamic components.
Thank you for you quick reply.
-
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 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
-
@tig said:
path = File.dirname(__FILE__)
does what you thinkThat's actually quite filled with issues. If your script said
load '../relative/path/filename.rb'
thenFile.dirname(__FILE__)
is../relative/path/
. Better to useFile.expand_path( File.dirname(__FILE__) )
. That gets the full path and, on PC, drive letter.
Advertisement