Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    SDK ExampleDataType

    SDK Help
    0
    3
    246
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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;

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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... 🙂

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post