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
    • Register
    • Login

    Local and Global coordinates

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 382 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 09/03/2005 at 04:17, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.5 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I'm scanning for mouse click coordinates, using

      click1=msg->GetData(BFM_INPUT_X)
      

      .
      The problem is that, as soon as I dock my dialog, the returned coordinates become global instead of local.
      First, I don't know why tha'hell the programmers decided to do this!! Why not stick with local ALWAYS??
      Then, I know that this was already debated:

      <[URL-REMOVED]>

      But, how can I solve this in COFFEE?

      Rui Batista

      p.s. I have a UserArea item in my dialog, if that helps.

      p.p.s Thank you very much for your help, so far, Robert 🙂


      [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

      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 09/03/2005 at 09:14, xxxxxxxx wrote:

        Ok, found out a workaround. It was not easy but now I have local coordinates ALWAYS, even if the dialog is docked. But one has to have a UserArea somewhere in your layout, even if it is just a 1x1 pixel one.
        Can the Maxon programmers do something about this? Can we have Global2Local functions in dialogs too? Please!!

        Rui Batista

        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 10/03/2005 at 06:45, xxxxxxxx wrote:

          I forwarded the request for GeDialog::Global2Local in C.O.F.F.E.E. (It's already there in the C++ API.)

          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 10/03/2005 at 06:46, xxxxxxxx wrote:

            YES!! Thank you, Mikael 🙂

            Rui Batista

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