Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Creating boolean objects

    SDK Help
    0
    6
    530
    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 24/08/2004 at 09:23, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I can't find any information about creating a boolean object.

      I think it must be something like

      BaseObject *obj;
      obj = AllocObject(0boole,TYPE);

      but i did not manage to find any correct type.

      Maybe there's a specific initialization for boolean objects...

      Thanks.

      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/08/2004 at 10:43, xxxxxxxx wrote:

        Try this:

        BaseObject* obj;
        obj = BaseObject::Alloc(Oboole);

        That should work better. From where did you pull AllocObject() (it's not in the SDK anywhere).

        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 27/08/2004 at 01:17, xxxxxxxx wrote:

          well, the Alloc() function is not in my sdk, maybe we're not using the same version...and it's not part of the BaseObject class
          and by using AllocObject(Oboole), the returner object has the NULL adress...

          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 27/08/2004 at 07:08, xxxxxxxx wrote:

            Okay. I checked the 8.1 SDK. You're using the 7.3 SDK?

            The docs say that it is: AllocObject(LONG type, LONG subtype = 0). There are no subtypes for a boolean object, so the subtype value can be omitted (default will be used).

            BaseObject* obj;
            if ((obj = AllocObject(Oboole)) == NULL) // do error response

            Sorry about the confusion.

            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 27/08/2004 at 11:34, xxxxxxxx wrote:

              Sorry about the confusion.

              No need to apologize. The original poster should have make clear that he is using an old SDK version. He even had 2 chances to do so (by telling and by specifying it in the according field. Because the post says 8.100) 😉

              Samir

              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 30/08/2004 at 02:33, xxxxxxxx wrote:

                in fact i'm using c4d v.8 so i made a mistake between C4D version and SDK version...

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