XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Adding Master Plugins to Menus

06-30-2003, 03:11 AM
Can it be done? I had an lscript someone posted ages ago that was supposed to do it, but I tried it and it didn't work.

06-30-2003, 04:51 AM
If you have a simple lscript that can add that plugin you can then assign the lscript to a hot key. Sometimes you can get lucky and lscript commander will see some things.

06-30-2003, 08:27 AM
Well I guess what I'm asking then is does anyone have the lscript skills to do this? :love:

06-30-2003, 08:47 AM
Its probably not that hard to do.
Add a master plugin in a simple scene and save it.
Open it in a text editor and see whats added to the scene file. You might be able to figure out what you need. :)

06-30-2003, 09:48 AM
Under your LightWave directory go to LScripts>>Interface>>Layout, you will find there a bunch of LScripts that are short cuts for plugins.

The basic template for a master plugin short cut would be:

name is the plugins "LW name", which is usually something like "LW_Whatever", if you don't know it you should look in the scene file with notepad to figure it out.

ShortCut Name is the name you want to appear on the menu.

@version 2.3
@script generic
@name ShortCut Name

appActive = false;

curScene = Scene();

applied = curScene.server("MasterHandler");

counter = size(applied);

for(x = 1; x <= counter; x++)
if(applied[x] == "name")
appActive = true;

ApplyServer("MasterHandler", "name");

openServer = string("EditServer MasterHandler ",x);


06-30-2003, 10:45 AM
I tried your script Kvaalen, but I'm getting an error:

Line 11, invalid server class type provided to method server()

06-30-2003, 11:05 AM

I just tried it with "ProxyPick" and then with "LW_ItemPicker" in stead of the "name" and it worked fine. :shrug:

Are you sure you copied it right?

06-30-2003, 01:12 PM
I was doing a few things wrong, but it works now! :thumbsup:
Thanks again!

06-30-2003, 06:59 PM
Thanks Kvaalen,
very useful info. :)

CGTalk Moderation
01-15-2006, 01:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.