[Plugin] MENUS.rb

[Plugin] MENUS.rb

Postby Alan Fraser » Tue Nov 13, 2007 3:02 pm

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.
0
FormFonts
Were you required to walk 500 miles? Were you advised to walk 500 more?
You could be entitled to compensation. Call the Pro Claimers now!
User avatar
Alan Fraser 
Top SketchUcator
 

Re: MENUS.rb

Postby juju » Mon Nov 19, 2007 5:42 am

Thx Alan, will have alook and see which I prefer between this and the one Didier did originally.
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: MENUS.rb

Postby boofredlay » Mon Nov 19, 2007 5:43 am

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.
Thanks.
0
User avatar
boofredlay 
Global Moderator
 

Re: MENUS.rb

Postby Alan Fraser » Mon Nov 19, 2007 5:43 am

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.
0
FormFonts
Were you required to walk 500 miles? Were you advised to walk 500 more?
You could be entitled to compensation. Call the Pro Claimers now!
User avatar
Alan Fraser 
Top SketchUcator
 

Re: MENUS.rb

Postby juju » Mon Nov 19, 2007 5:44 am

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?
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: MENUS.rb

Postby Alan Fraser » Mon Nov 19, 2007 5:45 am

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.
0
FormFonts
Were you required to walk 500 miles? Were you advised to walk 500 more?
You could be entitled to compensation. Call the Pro Claimers now!
User avatar
Alan Fraser 
Top SketchUcator
 

Re: MENUS.rb

Postby CadFather » Mon Nov 19, 2007 5:47 am

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
0
Quarr-IT - SketchUp Training from the Master.. http://quarr-it.com/
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 8 guests

Visit our sponsors: