Update Parameter Values [SOLVED]
-
On 26/08/2015 at 00:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R16
Platform: Windows ;
Language(s) : C++ ;---------
Greetings !I have created a Tag Plugin and added a button that is supposed to reset the description parameters to their initial values. It doesn't work though. The button is handled in Message in MSG_DESCRIPTION_COMMAND.
Do i have to add any update method other that setParameter ?
I tried to find any similar example but i couldn't. Is there any ?Thank you for your time.
-
On 26/08/2015 at 01:35, xxxxxxxx wrote:
Hello,
could you share some code showing how exactly you are trying to reset the parameters?
Best wishes,
Sebastian -
On 26/08/2015 at 07:26, xxxxxxxx wrote:
Greetings !
I solved it using:
base_material->Message(MSG_UPDATE);
base_material->Update(TRUE, FALSE);I dont know the difference though.
It seems it works with both of them.Thank you for your time.
-
On 26/08/2015 at 08:07, xxxxxxxx wrote:
Hi,
Shouldn't EventAdd() just be enough?
https://developers.maxon.net/docs/cpp/2023_2/c4d__general_8h.html#a47d8b6918f07e855bcf82a6d671569ad
-
On 26/08/2015 at 13:33, xxxxxxxx wrote:
base_material->Message(MSG_UPDATE); EventAdd();
should always (most of the time) do the trick.