question

Claire Krupp avatar image
1 Like"
Claire Krupp asked Claire Krupp commented

How do I cancel a video recording in the middle of a run?

I am creating a video of a large model, where it has to run for a long time before reaching the recording start time. One time I set the video recorder going and while it was FF forward to get to the video start, which I knew was going to take 4 hours, I realized I needed to change something. I could not figure out how to stop the recording mid-flow and cancel out of it. You can stop the model, or the fly-path, but the recorder still thinks it's on and then it just hangs. I had to close the whole model using the Task Manager in order to get out.

Is there a way to cancel? If not, please add a cancel button to the Video Recorder.

Thanks!

FlexSim 23.0.1
video recorder
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Claire Krupp commented

You can try using this script (attach it to a toolbar button if needed):

  1. stop();
  2. getvarnode(Model.find("Tools/VideoRecorder"), "active").subnodes[1].destroy();
  3. runprogram("Taskkill /IM ffmpeg.exe /F");
  4. Array activePersps=views().find("active>Documents/Perspective").subnodes.toArray();
  5. treenode viewNode;
  6. while (activePersps.length){
  7.     viewNode=ownerobject((activePersps.shift()).value);
  8.     if (viewNode.name=="recview")
  9.         closeview(viewNode.up);
  10. }
  11. resetmodel();
· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sri_vikas K avatar image
0 Likes"
Sri_vikas K answered Claire Krupp commented

Hi @Claire Krupp

On clicking the cancel button in the video recorder window. It stops the recording.

videorec.png

Once I was recording a video and supposed to stop the recording in the process due to some issue. On clicking on the cancel button in the above window. I was able to stop the recording.


videorec.png (22.4 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.