PDA

View Full Version : LScript reference/guide?



jrandom
07-06-2010, 12:28 AM
Where would I find up-to-date LScript documentation? I want to dive into this but have no idea where to start. The LScript Documentation section of this board only has posts that are very old with out-of-date links.

jameswillmott
07-06-2010, 12:30 AM
http://www.mikegreen.name/Lscript/Lscript%20Index.html

Best reference I know of.

jrandom
07-06-2010, 12:33 AM
Nice! Thank you.

That covers the "reference" part. Is there any kind of "getting started" guide? (If not, I'll just start bashing my way through it. I taught myself C, I can teach myself this. :) )

jameswillmott
07-06-2010, 12:41 AM
Getting started? I'd dive into the samples that come with LW, if you know C you'll pick up LScript pretty quickly. Just a matter of knowing the slightly odd syntax ( for some things ) and the commands.

jrandom
07-06-2010, 12:48 AM
Maybe I'm missing something? All I've been able to find are .c plugin modules, but nothing for LScript. There are two .pdf files, but they only contain a single page each (title pages, one is the LScript User's Guide, the other is the LScript reference).

archijam
07-06-2010, 01:11 AM
Check out matt's lscript page - they are varied, and all commented. Good disection material.

If you are totally new to scripting, a look at a few of the good scripting references from other apps can be good - I recommend the Rhino one (I only know RhinoScript).

http://wiki.mcneel.com/developer/rhinoscript101

I's pretty freakin amazing. I'm hoping a pdf like this could be released for LWX ;)

While many things are different, the fundamentals of variable handling etc is almost always the same.

Also, remember that if something doesn't work, you probably just forgot a comma. Look for the simple mistakes first ........

Matt
07-06-2010, 02:20 AM
All of my scripts are uncompiled and fully commented, that might help.

http://www.pixsim.co.uk/lightwave_lscripts.html

dballesg
07-06-2010, 03:06 AM
There are two .pdf files, but they only contain a single page each (title pages, one is the LScript User's Guide, the other is the LScript reference).

You can download the full LScript PDF's from here:

http://www.newtek.com/lightwave/developers.php

David

Myagi
07-06-2010, 05:10 AM
Maybe I'm missing something? All I've been able to find are .c plugin modules, but nothing for LScript. There are two .pdf files, but they only contain a single page each (title pages, one is the LScript User's Guide, the other is the LScript reference).

Also check the actual plugins/lscripts folder, there are plenty of uncompiled scripts in there.

jrandom
07-06-2010, 06:56 AM
I love this place.

I wish I could remember who recommended Lightwave to me when I was shopping around for a 3D program so I could thank them.

jrandom
07-06-2010, 07:53 AM
...

Oh god, these 1-based array indexes are killing me. My C-brain is screaming in agony.

I will adjust. :)

Matt
07-06-2010, 08:20 AM
...

Oh god, these 1-based array indexes are killing me. My C-brain is screaming in agony.

I will adjust. :)

Mike "LScript Legend" Green has a hack workaround for multi-dimensional ones:

http://www.mikegreen.name/Lscript/Source/Arrays.htm#Arrays

jameswillmott
07-06-2010, 08:26 AM
...

Oh god, these 1-based array indexes are killing me. My C-brain is screaming in agony.

I will adjust. :)

I doubt it. :P

You'll always get tripped up, and if you don't, you'll do 1-based arrays in C and wonder what's going wrong... :)