SDK ExampleDataType
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/11/2003 at 07:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;---------
I noticed that the example data type data type property enumerations does not include the vector, only long and string. The vector is still defined in other parts of the source. These seems like an inconsistency in the source. Can you please explain?Regards,
Thomas Cray
www.cidertank.com#define DATATYPE_DEFAULTLONG 1
#define DATATYPE_DEFAULTSTRING 2
CustomProperty datatypeprops[] =
{
** { CUSTOMTYPE_LONG, DATATYPE_DEFAULTLONG, "DEFAULTLONG" },
{ CUSTOMTYPE_STRING, DATATYPE_DEFAULTLONG, "DEFAULTSTRING" },
** { CUSTOMTYPE_END, 0, NULL }
};
class iExampleDataType : public iCustomDataType<ExampleDataType>
{
friend class ExampleDataTypeClass;
LONG ldata;
String sdata;
Vector vdata; -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2003 at 01:08, xxxxxxxx wrote:
Yes. But it just means that there's no "DEFAULTVECTOR" property. Extending it to do so would be a good exercise...
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2003 at 11:52, xxxxxxxx wrote:
Are the default properties suppsoed to set initial values for those parameters? I noticed that the SDK exampledatatype sets values for the long = 1 and string = "Hallo World". The default values do not apply when a new user data exampledatatype is created on an object. Would this be incorrect behaviour? Bare with me, I am catching up, just a little thick sometimes.
Regards,
Thomas Cray
www.cidertank.com