Page 1 of 1

In video recording: stop after a provided time

Posted: 07 Jun 2016, 13:28
by dr_no
Hello,

In the video recorder Plugin, for long simulations, a time bounded recording would be really handy. It would be even better to end the simulation based on a script variable.

Thanks!

Re: In video recording: stop after a provided time

Posted: 08 Jun 2016, 09:26
by coppelia
Hello,

you have 2 possibilities:
  • in the simulation settings dialog, you can request a simulation pause after a certain time. This will however only halt the video recorder, not end it (it will end once you stop the simulation)
  • in a child script you can call simStopSimulation. The function will trigger a simulation stop request, that could stretch over several simulation steps (in order to properly stop the simulation)
Cheers

Re: In video recording: stop after a provided time

Posted: 08 Jun 2016, 14:50
by dr_no
Thank you for the reply.

I stopped the simulation, but the video recording was still running. Did I miss something ?

Thanks

Re: In video recording: stop after a provided time

Posted: 09 Jun 2016, 09:06
by coppelia
The video recording will only automatically stop at the end of a simulation if you previously checked the box Launch at next simulation start.

Cheers

Re: In video recording: stop after a provided time

Posted: 09 Jun 2016, 17:28
by dr_no
It is working, thanks!