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

    Determine view changes in Draw()

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 284 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 27/07/2007 at 06:33, xxxxxxxx wrote:

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

      ---------
      Hi,

      is there a way to determine if the user is currently changing the perspective view? So, for example if he rotates or moves the view?

      Thank you
      Katachi

      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 27/07/2007 at 12:02, xxxxxxxx wrote:

        That's a tough one as I think Draw() is called on *every* change including view manipulations. You could store the current camera settings on each call to Draw() and compare them in the next call (before storing them) to see if something has changed (to differentiate between that and other reasons Draw() is being called).

        Don't know if that'll give you what you need.

        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 28/07/2007 at 01:59, xxxxxxxx wrote:

          Well, that would be great if it would be changed "only" on manipulations. 🙂 However, it´s also called when for example I am only hovering over the object axis or when a new object is selected.

          But you are right, maybe difference check of camera parameters and matrix is the most sensible way, although my problem is to then determine the last call of these changes. Must check if after view modifications there is another call that gives me the same settings, so I can do what I want to do.

          Thank you Robert!

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