View Full Version : Where is the script documentation?

11-07-2011, 10:17 AM
So, I own Lightwave 10, I purchased that book from Amazon which does not go over scripting, I can't find any decent documentation at all, I come to the forums, see a LScript Documentation area and I was like YAY!!!

To find it empty....

I need to learn LScript, I want to write a script that reads a text file from the hard drive, I then parse it, built up an entire level based on data in that file, all I have in the file are columns and rows of letters and numbers which represent what will exist in that 10x10 area, I also want to combine the end results into a single mesh so that when I import it into my game engine, it considers it a single mesh and not many meshes.

Can someone please supply some LScript documentation, how to get started, what to click on in the editor, all of the LScript things in the modeler only have a "Load" feature, not a "New" feature...


11-07-2011, 10:28 AM
Before there where two PDF's here:


But with the new web page and in the meantime while someone at NewTek realized they forgot to put them back, you can use Mike Greens compilation of LScript docs: (On the right menu, you can even download an offline version in zip)


Hope that helps

11-07-2011, 10:30 AM
Thanks for the quick response, going to go take a look at these links now....

Well, the lightwave download area, pointless, nothing in there I can use, not at the moment, the other one is a great reference but doesn't say which menu item to open the LScript editor, how to apply or run the script, etc, so now to fuddle around the software until I can find a way to create the file in an editor that allows for debugging, etc, unless I am stuck with notepad?


Page 298 of the Lightwave Modeler manual talks about LScript, but it only TALKS about it, which is rather pointless.
Can't learn how to use it without documentation.....
What is the point of the manual anyway if it only says "yes, the software can do this"

Strange manual...

The Layout Manual on page 131 talks about LScript also, but neither manual gives instruction on how to open the LScript editor (if there is one) to write your script and debug your script, at least the layout documentation said how to open and load a created LScript file...

What editor do I need to create and compile LScript files with debugging?

11-07-2011, 10:44 PM
I tend to use ConText, which has support for code highlighting, and I've got a code highlighter on my web page.


11-08-2011, 01:21 AM

Sorry I thought I left clear the pdf's where BEFORE on the download area.

About the LScript editor is called lseditor.exe and you can find it on the bin directory of your LW installation.

As an external editor I use NotePad ++ with a syntax coloring and partial help I created myself. You can find it here: LScript NotePad ++ Dev Pack (http://forums.newtek.com/showthread.php?t=120879)

LightWave has an incorporated debugger that opens when finds the command debug(); inside your script.

I will recommend that you download one of the scripts on Mike's page (the same one where I pointed the reference) and had a look to the code, Mike's scripts are not compiled and you can study the code. And I must say they have a clear code.

The LScripts can be loaded in Modeler or Layout. When you create one you need to specify the type of the script at the top of your code with a pragma directive: for example @script modeler will indicate is a Modeler Script.

On the LSIDE you can generate an empty template using it's Tools menu and choose the type of "skeleton" script you want.

There is a lsinterface.exe as well that will allow you to design interfaces for your own scripts. Sometimes I use it as a base, and then code myself what I need on my scripts based on the code generated by it.


11-08-2011, 02:56 PM
You can also try archive.org
It's from an older version but it gives enough to get started.

Regards, Iain

11-11-2011, 02:39 PM
Thanks guys for all the pointers, been a few days since I have been to the forums so going to grab everything everyone is pointing out and see where I can get with this issue.