Detect FPS changed



  • On 27/06/2018 at 05:03, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R17 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Probably it should be done throught a scene hook but I'm not sure what kind of check should I make to detect if the hook is sent by  a FPS change on the scene.

    Any idea on this?

    Thank you in advance.



  • On 29/06/2018 at 05:31, xxxxxxxx wrote:

    Hi Motiva,

    Actually, you can catch a change in a scene by catching EVMSG_CHANGE, which is triggered by any change in the scene.
    To catch such a message you have two options, first to implement a MessageData plugin or either a GeDialog where both of these class have a CoreMessage function where you can listen for such EVMSG_CHANGE .

    Then after is up to you to read the current FPS value for the current value, check if it's different and then do the change/send a message to a particular object.

    If you have any questions, feel free to ask :)
    Cheers,
    Maxime


Log in to reply