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

    Update Editorview

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 270 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 07/02/2007 at 08:00, xxxxxxxx wrote:

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

      ---------
      Hi,

      I have an object and a shader communicating with each other. The shader is drawing the stuff that the object generates. Now, when the object changes the shader correctly updates but the view is not updated.

      Moving the camera slightly helps but it´s a little annoying. What is the usual place to call another DrawViews or so so the shader can update?

      In GetVirtualObjects I cannot do it because that´s threaded.

      Thanks
      Samir

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

        Howdy,

        I'm not sure, but I had all kinds of DrawViews() updating problems when testing my plugins in R10. My solution was to add an EventAdd(EVENT_FORCEREDRAW) after the DrawViews(), in some cases I just replaced the DrawViews() with it.

        I wonder if that would also help you out in your situation?

        Adios,
        Cactus Dan

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

          Hi Cactus Dan,

          thanks, but the problem is not the update event itself but how and where to call it, when you are actually in GetVirtualObjects(). 🙂

          Adding Events and DrawView calls are not allowed for threaded functions. But in this very second I have an idea. I simply store a variable in my class and will call the update later. 🙂

          thx anyway
          Samir

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