In video recording: stop after a provided time

Requests or suggestions for new features
Post Reply
dr_no
Posts: 5
Joined: 30 May 2016, 16:53

In video recording: stop after a provided time

Post by dr_no » 07 Jun 2016, 13:28

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!

coppelia
Site Admin
Posts: 7441
Joined: 14 Dec 2012, 00:25

Re: In video recording: stop after a provided time

Post by coppelia » 08 Jun 2016, 09:26

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

dr_no
Posts: 5
Joined: 30 May 2016, 16:53

Re: In video recording: stop after a provided time

Post by dr_no » 08 Jun 2016, 14:50

Thank you for the reply.

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

Thanks

coppelia
Site Admin
Posts: 7441
Joined: 14 Dec 2012, 00:25

Re: In video recording: stop after a provided time

Post by coppelia » 09 Jun 2016, 09:06

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

dr_no
Posts: 5
Joined: 30 May 2016, 16:53

Re: In video recording: stop after a provided time

Post by dr_no » 09 Jun 2016, 17:28

It is working, thanks!

Post Reply