7 posts • Page 1 of 1
This is a script by Max Coppolletta, based on Didier's menu loader. I've copied it here from the SU Ruby forum. It comprises MENUS.rb and a few support files, which you probably already have, which go into Plugins root, a couple that go into delauney...then an entire catalogue of rubies, renamed in capitals, that will unzip into a Scripts folder.
Please, register (free) to access all the attachments on the forums.
Thx Alan, will have alook and see which I prefer between this and the one Didier did originally.
Alan, there are many more scripts in that zip file. Does one need to load all of them for the Menus.rb to work properly? I would prefer to keep as few rubies in my plugin folder as possible.
All but a couple of them go into a sub folder called Scripts, so they don't clutter the Plugins folder itself. MENUS.rb loads them, so you will get "No such file to load" errors if you simply delete them. However it's probably not that difficult to customise it to your own needs by deleting the files you don't need whilst having MENUS.rb open in a text editor and simply deleting the relevant file entry. Each one is separated by a line of chevrons, so it's a fairly straightforward task.
Alan, will this work with SU6? Having the the sketchup.rb in the plugins folder causes some errors in SU6 (from what I understand), so it'll have to be removed. Also, some of those scripts are the older versions, I suppose it will be safe to replace them as long as the name is the same, right?
Yes, if sketchup.rb is in there just delete it...as it's already in Tools.
Regarding the older scripts; this is only a loader so, as you say, as long as you rename the newer version to match the existing one I don't see that there should be a problem. Alternately, you could edit MENUS.rb to load the newer version, but it's probably easier just to change the filename.
you still need to pay attention to the menu lines in the scripts - always at bottom.
suppose you have a road.rb (it's about time) and want to integrate it to menu.rb
you will have to analyse the menu portion in road.rb, if it looks 'portable' (trial & error for me) copy the code (usually starts with 'if' and ends with 'end'). to menu.rb
if you want to keep the plugins folder neat, you can place road.rb in the scripts folder, making sure the file location in menu.rb now looks like 'scripts/road.rb'
you then place a hash (#) at the beginning of every line of code in road.rb. that will disable the code and ensure you shall not find the menu item appearing in 2 different places.
hope this is of help
EDIT: if anyone has a list of scripts (fee and free) please let me know - i can then carry some trimming in my menu and post it (too much stuff).
otherwise let me know which free plugin we should have as a must and i will write one new
Quarr-IT - SketchUp Training from the Master.. . .
7 posts • Page 1 of 1