On 25/09/2014 at 21:42, xxxxxxxx wrote:
Cinema 4D Version: R13
Platform: Mac ;
Language(s) : C++ ;
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.
On 01/12/2014 at 12:55, xxxxxxxx wrote:
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.
On 02/12/2014 at 12:05, xxxxxxxx wrote:
I'll try it out.