Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Check if Cinema window is active

    Cinema 4D SDK
    python windows r20
    2
    3
    676
    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.
    • B
      Boony2000
      last edited by

      Hi everyone!

      Is there a way to get info from Cinema, whether the main window is active or in focus?
      I know dialogs have the isActive() function. I also know you get get the editor window via the baseDraw.GetEditorWindow() but there doesn't seem to be anything helpful there.
      Can you get the state of the main window somehow?`

      Thanks!

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by m_adam

        Hi @Boony2000, the current Cinema 4D API does not offer this feature. So you will need to look at some external modules, which are OS dependent. https://stackoverflow.com/questions/10266281/obtain-active-window-using-python

        I'm afraid we can't provide you more help on that.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 1
        • B
          Boony2000
          last edited by

          Ok, that's a shame. Would have been useful.
          Thanks anyway.

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