Hyperview Animation (Frames/Sec) setting control

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi All

 

Here is a snippet of code I am trying to work on:

 

        page_handle GetAnimatorHandle animator_handle
        animator_handle SetAnimationMode transient
        page_handle SetPercentOfMaximumSpeed 0.01
        page_handle StartAnimation

 

I need to create an animation gif at a particular (frame/sec). I am not able to get control over this option.

I tried SetPercentOfMaximumSpeed but it doesn't seem to work properly. Please help me to solve this issue.

 

Thanks

Saumya Mishra

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited April 2018

    Hi Saumya,

     

    why don't you try using animationexport handles instead, 

    https://connect.altair.com/CP/kb-view.html?kb=84982

     

    hwi GetSessionHandle mySessionName

    mySessionName GetGIFExportOptionsHandle myGIF

    myGIF SetSize 99

    myGIF SetDelay 0.5

    mySessionName CaptureAnimationByArea gif c:/temp/fun.gif 0 0 1050 450

    mySessionName CaptureAnimationByArea gif c:/temp/fun_75.gif 0 0 1050 450 percent 75 75

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2018

    Hi Livil

    Thanks for the reply. The snippet of the code provided did the job, but is it possible to control start frame and end frame at the same time.

     

    Thanks

    Saumya Mishra