On 03/09/2015 at 13:20, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R16
Platform: Windows ;
Language(s) : C++ ;
---------
Hello !
I have created a Custom GUI Data plugin along with an iCustom class and a UserArea.
The value that is set to and get from the user area is LONG.
So, in the resource file i use:
LONG MY_PARAMETER {CUSTOMGUI MY_CUSTOM_GUI;}
In the material plugin init function i set the value of MY_PARAMETER to 9 using the GetDataInstance of the node.
When the initGLImage is called, i get the value of MY_PARAMETER using again the data, but this time it has value of 1.
I have checked these values in the very first call of Init and InitGLImage
Is there anything that is called between and affects the value of MY_PARAMETER?
Thank you for your time.