Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Detect FPS changed

    SDK Help
    0
    2
    758
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post