Hi all,
I'm close to finishing the first beta of the new 1.4 version. If anyone has some problems or found bugs while using the current 1.3a, please tell me so I might be able to include a fix for it in the upcoming version.
I already fixed all known bugs, except this one, which I can't seem to reproduce at the moment.
Second thing...
The major feature of 1.4 is scripted animation using lua. So in order to make your own animations you need to write scripts using the lua interface api I've setup.
My question is how much documentation would be needed to get people started? Or might just a couple of examples be enough?
Thing is don't want to waste time on writing documentation no one is going to read (I learned that the hard way with LD4DStudio), so I'm hoping to find the middle ground.
Minimal example of a script:
This will (absolutely) rotate group 1 around the y axis once during the time of playback (5 seconds by default)
I'm close to finishing the first beta of the new 1.4 version. If anyone has some problems or found bugs while using the current 1.3a, please tell me so I might be able to include a fix for it in the upcoming version.
I already fixed all known bugs, except this one, which I can't seem to reproduce at the moment.
Second thing...
The major feature of 1.4 is scripted animation using lua. So in order to make your own animations you need to write scripts using the lua interface api I've setup.
My question is how much documentation would be needed to get people started? Or might just a couple of examples be enough?
Thing is don't want to waste time on writing documentation no one is going to read (I learned that the hard way with LD4DStudio), so I'm hoping to find the middle ground.
Minimal example of a script:
Code:
function reg()
local ani=ldc.animation('Example')
ani:setEvent('frame', 'onFrame')
end
function onFrame()
local ani=ldc.animation.getCurrent()
local grp=ldc.group('Group 1')
local angle=ani:getFrameNr()/ani:getFrameCnt() * 360
local posOri=ldc.matrix()
posOri:setRotate(angle, 0, 1, 0)
grp:setOri(posOri)
end
reg()
This will (absolutely) rotate group 1 around the y axis once during the time of playback (5 seconds by default)