Thoughts on animation scripting language


Re: Preview of LDCad 1.4 animation scripting api (was re: Thoughts on ani...)
#36
The lua reference documentation isn't the best of it's kind imho (nor is mine probably Smile ), so I totally understand things can be a bit confusing.

A fun thing in lua is functions can return multiple values, I make use of that in the mentioned get function so you can fetch the vector object's internal variables in one statement like so:

Code:
local x, y, z=myVec:get()

You can then use the three normal number variables to do some manual (vector) math.

Hope that makes sense, I'll try to add some statement examples to the more off beat functions.

Thanks for the suggestion.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: Preview of LDCad 1.4 animation scripting api (was re: Thoughts on ani...) - by Roland Melkert - 2014-09-20, 18:31

Forum Jump:


Users browsing this thread: 4 Guest(s)