On 15/09/2015 at 07:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R16
Platform: Windows ;
Language(s) : C++ ;
---------
Greetings !
I have created a material plugin.
In the parameter list, i use checkboxes that cause other parameters to appear/disapppear
I have also created a GeUserArea in a iCustomGui subclass that i use in the parameter attribute list as CUSTOMGUI. Users can also click this user area to show and hide parameters. At this point everything works fine.
The problems appear when the user decides to modify the Material using the material editor.
First of all when they click the GeUserArea, even though some of the parameters must disappear (while others appear), they all remain appeared.
Even though i use the following code in the GetDDescription the parameter doesn't disappear, while it does in the Material Manager.
BaseContainer * description_data = description->GetParameterI(DescLevel(parameter_id),params);
if (description_data)
description_data->SetBool(DESC_HIDE, true);
Do i do anything wrong ?
Is there anything i can do to make Material Editor to listen to these kind of events ?
Thank you for your time.