PDA

View Full Version : Embedded LScript Working?



clintonman
09-21-2007, 03:42 PM
I can't seem to get Embedded LScript to work.

I created C:\Program Files\NewTek\LScripts\expressions\library.ls

and put one function in it

smoketrails:
{
return(7);//test 7 particles per frame
}

I get unresolved function reference when I try to use it.

I also tried putting it here
C:\Program Files\NewTek\LightWave 3D 9.3\LScripts\expressions\library.ls

I've read the lscript 2.6 notes and the layout manual, but I can't get it to work.

Clinton

clintonman
10-03-2008, 08:35 PM
I finally got around to answering my own question.

followed the lscript2.6 notes and created the channelValue and library lscript files inside of
C:\Program Files\NewTek\LightWave 3D 9\Plugins\lscripts\expressions\

the
\NewTek\LScripts\expressions\library.ls
\NewTek\LScripts\expressions\channelValue.ls
mentioned in the notes wasn't helpful for me

created a light, named it " WashLight" and put the expression in the graph editor for intensity.

For my case the function only works if an argument is passed to it. So I guess all functions have to have at least one argument.

smoketrails: val
{
return(7);
}

Final answer: Embedded LScript does work if you know where to put the files and pass at least one argument to the function.