PDA

View Full Version : new to lscript - running / testing ls files



3DimensionalCat
09-15-2004, 12:09 PM
This was the extremely simple script I was using to test the lscript platform:

main
{
info("Why is this not working?");
}


I'm adding the .ls file as a plug-in successfully, even placing it in the layout as a command. It does not work/react, I cannot even see the dialog box.

What am I doing wrong?

By the way, doesn't the bundled lscript editor run scripts?

Fundamentals please, I am working with an experienced programmer friend and we are frustrated of not even being able to run anything.

Thanks in advance.

Matt
09-15-2004, 02:26 PM
LW needs to know what kind of script it is (there are different types) so try this:



// Testing Testing ...

@warnings
@script generic

generic
{
info("This should work!");
}

- - -

Edit: Also, make sure in 'Options' your 'Alert Level' isn't set to 'Expert'. This level supresses 'info' boxes - instead it shows any info text in the status bar near the bottom of the main window.

3DimensionalCat
09-16-2004, 08:01 AM
Thanks now... Finally some words got through to LW.

So what are the predefined (or can you also define custom type scripts?) types of @scripts?

And how does LW recognize what kind of architecture it is suitable to run through if you don't define anything?

Thanks again...

Matt
09-16-2004, 03:04 PM
There are set types of scripts;

// Modeler script (Modeler)
@script modeler

// Channel filter script (layout)
@script channel

// Displacement map script (layout)
@script displace

// Generic (layout)
@script generic

// Item animation script (layout)
@script motion

// Image filter script (layout)
@script image

// Object replacement script (layout)
@script replace

// Procedural texture script (layout)
@script shader

// Master script (layout)
@script master

// Custom object script (layout)
@script custom

Lscripts are platform independant, they are run-time compiled by LightWave.