PDA

View Full Version : add a third party plugin ?



eben
10-30-2003, 03:10 AM
hi there,

i would like to know if it's possible to add a third party plugin via a lscript ? ( just add, not control ). In my case, it's a custom object ?

regards,

Eben.

Lightwolf
10-30-2003, 04:39 AM
Hi Eben,
yes it is. Have a look at the Lscripts\Interface\Layout directory ofy our LW installation, those should get you started.
For example:


//-----------------------------------------
// addSpeedometer.ls
//

@version 2.3
@warnings
@script generic
@name Add Speedometer

generic
{
AddNull("Speedometer");
SelectByName("Speedometer");
ApplyServer("CustomObjHandler","LW_Speedometer");
CommandInput("EditServer CustomObjHandler LW_Speedometer");
}

The last command actually opens the ui. Check for some of the others scripts on how to check if the plugin has already been applied.
Cheers,
Mike

eben
10-30-2003, 06:01 AM
thanks very much Lightwolf !! i think it's THE answer i needed !

regards,

Eben.

Lightwolf
10-30-2003, 06:18 AM
Hi eben,
:D Great, I'm glad to have been some help.
Cheers,
Mike