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

    Force GetDEnabling() [SOLVED]

    SDK Help
    0
    3
    286
    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
      Helper
      last edited by

      On 25/09/2014 at 21:42, xxxxxxxx wrote:

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

      ---------
      Hello!

      Is there a way to force C4D to call GetDEnabling() on a Video Post plugin?
      I have an async process that can change the visibility of some parameters, and the only way to refresh the GUI is by clicking the button (or any other parameter) again.
      I've tried creating a dummy BOOL and setting it on/off, but it did not trigger GetDEnabling.

      Thanks,
      Roger

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 01/12/2014 at 12:55, xxxxxxxx wrote:

        Hi Roger,

        I'm sorry to get to your issue this late. You probably already solved it yourself.
        I think EventAdd() is what you were looking for.
        I took the vpcolorize.cpp from the SDK examples (C++ SDK - Selective Colorize). This already has a Mode parameter, which depending on its setting, en-/disables the Object ID parameter.
        In this plugin I set up a thread, which toggled the Mode parameter in one second intervals. Using EventAdd() in this thread after changing the mode parameter in the BaseContainer lead to the desired result. GetDEnabling() was triggered and the parameters on the render settings page toggled happily back and forth.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 02/12/2014 at 12:05, xxxxxxxx wrote:

          Great!
          I'll try it out.
          Thanks!

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