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
    • Recent
    • Tags
    • Users
    • Login

    Methods in SceneHookData

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 303 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 15/07/2010 at 07:25, xxxxxxxx wrote:

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

      ---------
      Hi all,

      I've just started a basic SceneHookData plugin. I want to start a timer when the defaut scene is set dans then write a message each seconds (interval of the timer).

      My code is quite simple, in the InitSceneHook method I :

      • Show a MessageDialog("Init")
      • Start the timer

      In the method that is called every seconds I show another MessageDialog("Timer")

      I work with the demo version of C4D and there is a window that shows up at the beginning. When I run the demo this windows shows up then the "Init" message and the "Timer" message, every seconds. So it works.

      The problem is when I close the demo window, the defaut 3D scene shows up and my Timer is stopped... Could you guys tell me what is wrong with my code ?

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 19/07/2010 at 01:20, xxxxxxxx wrote:

        I am sorry, without seeing your code it's hard to tell.

        cheers,
        Matthias

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 19/07/2010 at 11:21, xxxxxxxx wrote:

          From what I understand, the init of a scenehook isn't called that frequently (just a few times when the scene is loaded).

          If you need a timer, I'd use a MessageData and its built in GetTimer function.

          -kvb

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