THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/11/2011 at 08:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform:
Language(s) : C++ ;
---------
Hi,
I've made a interface with some fields and a button. As soon as the button get pressed, I want to get all the Data from the Fields.
BaseContainer bcFieldOne = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG);
bcFieldOne .SetString(C4dApi.DESC_NAME, "FieldOne");
bcFieldOne .SetLong(C4dApi.DESC_DEFAULT, 2);
if (!descparams.Desc.SetParameter(cid, bcArme, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
return true;
.
.
.
BaseContainer bcButton = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_BUTTON);
bcButton.SetLong(C4dApi.DESC_CUSTOMGUI, C4dApi.DTYPE_BUTTON);
bcButton.SetString(C4dApi.DESC_NAME, "Test Button");
if (!descparams.Desc.SetParameter(cid, bcButton, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
return false;
So the question is How do I get the Data? I googled and found the function Message, but I'm not really sure if i do need that function.
Is there a other function which cinema calls as soon as there were changes made (like pressed a button)?
Any tipps?
its an ObjectData Plugin