LSCompiler in Layout


This command will translate an un-compiled Lscript to a Binary compiled Lscript. Use the options on the panel to enable timeout, expiration message, and more.

Choose a Target type before file browsing. The Target is the architectural type of the script. If the script has a "@script" identifier in it, then you can specifie it first, and the compiler will automatically select the architecture.

IF=Image Filter
PT=Procedural Texture
DM=Displacement Map
IA=Item Animation (Item Motion)
OR=Object Replacement
CF=Channel Filter
CO=Custom Object
Lib=Library file

Note: un-compiled Lscript’s file format is (*.ls), Compiled Lscript’s file format is (*.lsc)

LScript is a high-level wrapper for the LightWave plug-in Application Programming Interface (API). It encapsulates the complex underpinnings of the API away from the plug- in developer, allowing them to concentrate more fully on the task to be accomplished. LScript also provides added features not available in the plug-in API, making plug-in development faster.

Because LScript has its roots in the C language, the transition between scripting and native-language (binary) plug-in development is eased a great deal. Scripts written in LScript can often be ported into C with far less effort. This makes it possible to use LScript as a rapid prototyping tool for plug-in development.

Nearly all of the LightWave plug-in architectures have scripting capabilities through LScript.

LScripts can be installed in the same way plug-ins are. The LScripts then become commands that can be added to menus or assigned to keyboard shortcuts.

LScript also provides a run-time system, allowing scripts to be compiled into an encrypted binary form that prevents modification or reverse engineering. Facilities for timed or counted execution are also provided by the run-time system.

Most important, LScript is a virtual machine system. Scripts written on one platform should work directly and immediately on any other platform supported by LightWave. This differs from traditional plug-in development in that each platform must have its own compiler, and each plug-in must be compiled and maintained on that platform. LScripts are platform independent.

Note: For more information about LScripts see the Lscript Reference Manual and User Manual.