Hi, i am running a simulation (Vortex Studio 2019c) in Python script. The simulation does not run real-time since i am running it with another program, and i want to record it as a video file which shows real-time scene. How could i do that?
Thanks in advance
Best Answer
V
Vortex Studio Support
said
7 months ago
Hi
I don't know what is the nature of that other program, I am assuming it is blocking the Vortex simulation, preventing it to run at the frame rate as set in the VxApplication.
Vortex Studio does not offer any tools to record a video.
However, I can suggest some alternatives:
- I am assuming you are running a single Vortex Process (dynamics and physics are running in the same process), you could try to simply record the video that show in the graphics window using a 3rd Party software (windows 10 comes with Xbox game bar for example) and then speed up the video to get the desired frame rate.
- Use Vortex Kinematic Recorder. When set to record, Vortex will basically record every input and outputs. When played back, those inputs and outputs will be played back rather than being simulated. If when playing back your other program is not running, Vortex will run at his desired frame rate, so it will playback as if real-time. This should give you the desired effect.
The API is available from the Application Context of the application. The C++ tutorial Mechanism Viewer has a keyboard listener extension that shows how to use the API, the API is similar in python. See "C:\CM Labs\Vortex Studio 2019c\tutorials\MechanismViewer\RecorderKeyboardListener.cpp"
Hope that helps.
Have a good day,
Nicolas
1 Comment
Vortex Studio Support
said
7 months ago
Answer
Hi
I don't know what is the nature of that other program, I am assuming it is blocking the Vortex simulation, preventing it to run at the frame rate as set in the VxApplication.
Vortex Studio does not offer any tools to record a video.
However, I can suggest some alternatives:
- I am assuming you are running a single Vortex Process (dynamics and physics are running in the same process), you could try to simply record the video that show in the graphics window using a 3rd Party software (windows 10 comes with Xbox game bar for example) and then speed up the video to get the desired frame rate.
- Use Vortex Kinematic Recorder. When set to record, Vortex will basically record every input and outputs. When played back, those inputs and outputs will be played back rather than being simulated. If when playing back your other program is not running, Vortex will run at his desired frame rate, so it will playback as if real-time. This should give you the desired effect.
The API is available from the Application Context of the application. The C++ tutorial Mechanism Viewer has a keyboard listener extension that shows how to use the API, the API is similar in python. See "C:\CM Labs\Vortex Studio 2019c\tutorials\MechanismViewer\RecorderKeyboardListener.cpp"
H. CHOI
Hi, i am running a simulation (Vortex Studio 2019c) in Python script. The simulation does not run real-time since i am running it with another program, and i want to record it as a video file which shows real-time scene. How could i do that?
Thanks in advance
Hi
I don't know what is the nature of that other program, I am assuming it is blocking the Vortex simulation, preventing it to run at the frame rate as set in the VxApplication.
Vortex Studio does not offer any tools to record a video.
However, I can suggest some alternatives:
- I am assuming you are running a single Vortex Process (dynamics and physics are running in the same process), you could try to simply record the video that show in the graphics window using a 3rd Party software (windows 10 comes with Xbox game bar for example) and then speed up the video to get the desired frame rate.
- Use Vortex Kinematic Recorder. When set to record, Vortex will basically record every input and outputs. When played back, those inputs and outputs will be played back rather than being simulated. If when playing back your other program is not running, Vortex will run at his desired frame rate, so it will playback as if real-time. This should give you the desired effect.
The Vortex Player has a page to control the recorder, see https://www.cm-labs.com/vortexstudiodocumentation/Vortex_User_Documentation/Default.htm#Player/vplayer__r_a_p.html?Highlight=record%20and%20playback
The API is available from the Application Context of the application. The C++ tutorial Mechanism Viewer has a keyboard listener extension that shows how to use the API, the API is similar in python. See "C:\CM Labs\Vortex Studio 2019c\tutorials\MechanismViewer\RecorderKeyboardListener.cpp"
Hope that helps.
Have a good day,
Nicolas
Vortex Studio Support
Hi
I don't know what is the nature of that other program, I am assuming it is blocking the Vortex simulation, preventing it to run at the frame rate as set in the VxApplication.
Vortex Studio does not offer any tools to record a video.
However, I can suggest some alternatives:
- I am assuming you are running a single Vortex Process (dynamics and physics are running in the same process), you could try to simply record the video that show in the graphics window using a 3rd Party software (windows 10 comes with Xbox game bar for example) and then speed up the video to get the desired frame rate.
- Use Vortex Kinematic Recorder. When set to record, Vortex will basically record every input and outputs. When played back, those inputs and outputs will be played back rather than being simulated. If when playing back your other program is not running, Vortex will run at his desired frame rate, so it will playback as if real-time. This should give you the desired effect.
The Vortex Player has a page to control the recorder, see https://www.cm-labs.com/vortexstudiodocumentation/Vortex_User_Documentation/Default.htm#Player/vplayer__r_a_p.html?Highlight=record%20and%20playback
The API is available from the Application Context of the application. The C++ tutorial Mechanism Viewer has a keyboard listener extension that shows how to use the API, the API is similar in python. See "C:\CM Labs\Vortex Studio 2019c\tutorials\MechanismViewer\RecorderKeyboardListener.cpp"
Hope that helps.
Have a good day,
Nicolas
1 person likes this
-
Can’t open the samples
-
How do you verify an object’s coordinates?
-
Vortex Studio 2017a Launch Webinar Discussion
-
Vortex Studio 2017 hardware requirements
-
Maritime Environment and Hydrodynamics Simulation Webinar Discussion
-
STEP support?
-
Tutorial forklift tipping over
-
Logitech Joystick Compatibility
-
Determining power loss in drive train
-
Hole Geometries Through Editor
See all 128 topics