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

    How to get screen space

    Cinema 4D SDK
    2024 python
    2
    3
    602
    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.
    • chuanzhenC
      chuanzhen
      last edited by m_adam

      Hi,
      The position information of the screen space obtained using BaseView.WS() is that the upper left corner of the c4d view is the origin (x=0, y=0).

      How to convert it to the position of the entire computer screen?

      734e7c74-e021-4b2e-b45b-10427b0692cb-image.png
      Thanks for any help!

      相信我,可以的!

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

        Hi @chuanzhen the correct way would be to use BaseDraw::GetFrameScreen, unfortunately it is currently not working, I've informed the responsible dev, and a fix will most likely happen, I will update this topic, once the fix have been published.

        Cheers,
        Maxime

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        chuanzhenC 1 Reply Last reply Reply Quote 1
        • chuanzhenC
          chuanzhen @m_adam
          last edited by

          @m_adam Thanks!👍

          相信我,可以的!

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