Hi,
it's nice to have the examples for CustomGuis and CustomDataTypes in the SDK in customdata_customgui.cpp
. But how is it actually used? Is there any example code of how to use this in e.g. an ObjectData? You know, set data, get data, et cetera.
I know how to use CustomDataTypes in general, but what about one that's not from the API? Last time I did that was 10+ years ago, and I can't remember.
This did not work:
In the .res file:
DOTS OTEST_DOTS { }
Code in the object plugin:
iCustomDataTypeDots* dotsData = (iCustomDataTypeDots*)bc->GetCustomDataType(OTEST_DOTS, ID_SDK_EXAMPLE_CUSTOMDATATYPE_DOTS);
const maxon::Int count = dotsData->_points.GetCount();
Thanks in advance!
Cheers,
Frank