Animate building a model

Re: Animate building a model
You could use my LDCad's scripting feature to animate the parts appearing. The simplest way (in a non mpd) is to just loop trough all references and show them based on time.

script (could not attach as .lua is not allowed)

function register()

  local ani=ldc.animation('build')
  ani:setEvent('frame', 'onFrame')  

function onFrame()

  local ani=ldc.animation.getCurrent()
  local sf=ldc.subfile()
  local cnt=sf:getRefCount()
  local thres=ani:getFrameTime()/ani:getLength()*cnt
  for i=1,cnt do


Just copy it into a .lua file and place it alongside in the model's folder. Afterwords you link it using the header dialog.

If you want more advanced things happening like the pieces flying etc you'll need to get you hands dirty using some (matrix) math.

Downside: At the moment you can only export the OpenGL rendering, but I'm planning to add pov-ray export in 1.6
« Next Oldest | Next Newest »

Messages In This Thread
Re: Animate building a model - by Damien Roux - 2015-06-17, 11:14
Re: Animate building a model - by Roland Melkert - 2015-06-17, 16:38

Forum Jump:

Users browsing this thread: 1 Guest(s)