I am working on automating animation export in Simpack Post 2024x.2 using QSA scripting
function Export_Animation()
{
//Add project
var project = Spck.addProject();
//Add Animation Frame
var aniFrame = project.pset1.page1.addAnimationFrame(0);
//Add result file & add model to Animation Frame
var resfile = project.addResultFile("C:/Animations/input/results/0_CAR.DRIVING_DYNAMICS.scen.sbr");
aniFrame.addModel(resfile);
//Set animation export properties
aniFrame.compression = 0;
aniFrame.framerate = 30;
aniFrame.width = 1920;
aniFrame.height = 1080;
//Export animation as .mp4 file to folder
AnimationExporter.exportAniFrame(aniFrame, "C:/Animations/output/Animation1.mp4");
}
The "Set animation export properties" are not working, the export happens with default properties.
I would love to hear any recommendations. Thanks in advance!
