SketchUcation Premium Membership

 

 

[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.
Please, register (free) to access all the attachments on the forums.
FormFonts
If Wile E.Coyote has enough money to buy all that Acme crap, why can't he just buy dinner?
User avatar
Alan Fraser
Top SketchUcator
 
Posts: 2697
Joined: Thu Dec 06, 2007 1:17 pm
Location: Formby UK
Name: that tune
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

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.
Save the Earth, it's the only planet with chocolate.



Keeping things organised is not a sin. ;)
juju
 
Posts: 1127
Joined: Mon Oct 22, 2007 1:45 pm
Location: Durbanville, Cape Town, South Africa.
Name: Juju

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.
User avatar
boofredlay
Global Moderator
 
Posts: 9020
Joined: Mon Oct 22, 2007 1:50 pm
Location: Huntsville/Madison Alabama
Name: Eric Lay
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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.
FormFonts
If Wile E.Coyote has enough money to buy all that Acme crap, why can't he just buy dinner?
User avatar
Alan Fraser
Top SketchUcator
 
Posts: 2697
Joined: Thu Dec 06, 2007 1:17 pm
Location: Formby UK
Name: that tune
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

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?
Save the Earth, it's the only planet with chocolate.



Keeping things organised is not a sin. ;)
juju
 
Posts: 1127
Joined: Mon Oct 22, 2007 1:45 pm
Location: Durbanville, Cape Town, South Africa.
Name: Juju

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.
FormFonts
If Wile E.Coyote has enough money to buy all that Acme crap, why can't he just buy dinner?
User avatar
Alan Fraser
Top SketchUcator
 
Posts: 2697
Joined: Thu Dec 06, 2007 1:17 pm
Location: Formby UK
Name: that tune
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

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
Quarr-IT - SketchUp Training from the Master.. . ;) .
User avatar
CadFather
 
Posts: 839
Joined: Fri Nov 16, 2007 11:03 am
Location: London, Milano, Sicily
Name: CadFather

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Keyframe Animation plugin - animate your SketchUp model by adding movement to any object.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: Google Feedfetcher, McGyver, OmarSun, panixia and 8 guests