View Full Version : Adding Master Plugins to Menus
06-30-2003, 04: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, 05: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, 09:27 AM
Well I guess what I'm asking then is does anyone have the lscript skills to do this? :love:
06-30-2003, 09: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, 10: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.
@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;
openServer = string("EditServer MasterHandler ",x);
06-30-2003, 11: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, 12:05 PM
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, 02:12 PM
I was doing a few things wrong, but it works now! :thumbsup:
06-30-2003, 07:59 PM
very useful info. :)
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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.