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

    Update navigation cross

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 116 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

      On 31/07/2013 at 11:16, xxxxxxxx wrote:

      Hello!

      There is this little green navigation cross that displays the pivot for rotations in a viewport ("point of interest").

      I can change it easily enough with

      cameraData.SetVector(c4d.ID_CAMERA_POINT_OF_INTEREST,newPivotPos)

      But while this is working functionally, the green cross in the viewport does not move visually. At least not until I actually navigate in the view - then it snaps into the correct location.

      I tried to update via messaging, viewport, and events. None of the following update methods yields any result:

      camera.Message(c4d.MSG_UPDATE)
      c4d.EventAdd()
      c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
      c4d.DrawViews (c4d.DRAWFLAGS_0)
      c4d.DrawViews (c4d.DRAWFLAGS_ONLY_BASEDRAW | c4d.DRAWFLAGS_NO_THREAD | c4d.DRAWFLAGS_NO_REDUCTION | c4d.DRAWFLAGS_NO_ANIMATION | c4d.DRAWFLAGS_FORCEFULLREDRAW, basedraw)

      So - how is the green cross visually updated? Since the rotation pivot DOES change, the internal camera value is obviously correctly updated.

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