On 11/09/2017 at 07:03, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R18
Platform: Windows ;
Language(s) : C++ ;
---------
Hello.
I have an iCustomGui in a ShaderData plugin.
Pressing a button in the shader data causes the custom gui to add more parameters in its UI.
I do that in custom gui's SetData method between LayoutFlushGroup(...) and LayoutChanged(...).
Nevertheless, SetData doesn't seem the correct place for the "layout reset" code.
Everytime I add a parameter (E.g. AddStaticText), it appears duplicated.
I would add this code in the CreateLayout method, but it is called only once at initialization.
Is there a way to send a message from a NodeData plugin to any of its iCustomGuis ?
That way everytime I have to update the custom gui from Node Data, I can send a message to it.
Thank you.