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

    Start for C++

    Scheduled Pinned Locked Moved SDK Help
    11 Posts 0 Posters 706 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/11/2004 at 23:18, xxxxxxxx wrote:

      i hope that my post was not a stupid post 😞

      Best regards
      Renato T.

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 27/11/2004 at 09:09, xxxxxxxx wrote:

        otherobj->IsInstanceOf(Opoint) (or Opolygon, Obase, Ospline, etc.)

        No post is stupid. 🙂

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 27/11/2004 at 10:44, xxxxxxxx wrote:

          Kuro 🙂

          I need to create otherobject with a GetNext() or similar function then i can verify with IsInstanceOf.
          But GetNext()is not working.

          I'm study Spherize.cpp source and i'm trying to get a spline like other argument to make new deformator but i still don't working 😞
          Other good things is to get spline object from argument on attribute manager but i need to create a different parameters like Strenght or Radius.
          i'm sorry for my bad english but i hope that you understand.

          Cheers
          Renato T.

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 27/11/2004 at 15:03, xxxxxxxx wrote:

            I don't understand 'create'. GetNext() retrieves the next object in the Object Manager (GetDown() retrieves the first child of the object). In order to 'create' an object (BaseObject), you need to call newObject = BaseObject::Alloc(type) where 'type' is Obase, Onull, Obone, Ospline, etc.

            Then, you insert the object into the Document with baseDocument->InsertObject(newObject, PARENT, PREV, BOOL) where PARENT is the BaseObject to parent 'newObject' to (or NULL for no parent), PREV is the BaseObject which should precede this one in the Object Manager (or NULL for it to be first), and BOOL is 'TRUE' or 'FALSE' to check for duplicate name and rename this one with a '.N' index (like MyObject.1).

            Let me know if one of these directions in which I'm heading is good? 😕

            Robert

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 27/11/2004 at 21:10, xxxxxxxx wrote:

              Kuroyume0161, thanks for your patience 🙂

              I wrong to speak, i don't need to create but i need to "get" other obj that is a SplineObject.
              I need to make a new parameters (Link or Object) for spherize deformator to read points and tangents for curve.
              A parameters like Spline Deform that have 2 Spline like arguments.

              I hope that you can understand this bad english 🙂

              Cheers
              Renato T.

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 27/11/2004 at 23:02, xxxxxxxx wrote:

                So, you have a deformer object with spline objects as children, right?

                But, you want to make sure that they're spline objects after using obj->GetNext() and before using them in some processing?

                If the splines are children of the deformer, you should do something as follows:

                  
                BaseObject *child;  
                if (child = deformer->GetDown())  
                {  
                     for (child; child; child = child->GetNext());  
                     {  
                          if (child->IsInstanceOf(Ospline)) // this object is a Spline, do your thing  
                     }  
                }  
                

                This starts by getting the deformer's first child object. Then it goes down the object list looking for any object that is a Spline object (Ospline). When an object is found to be a Spline, you can do what you need, like add it as a BaseLink in the deformer's Attributes.

                This code doesn't handle a hierarchy (objects with children with children and so on), but that can be done with a recursive method if needed.

                Robert

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

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 28/11/2004 at 01:08, xxxxxxxx wrote:

                  thanks, i can start from this 🙂

                  Renato T.

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

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 28/11/2004 at 01:12, xxxxxxxx wrote:

                    Robert, i tried to send email to you from your website but i got error.

                    Delivery Status Notification - Failed

                    i need to tell you something.

                    thanks
                    Renato T.

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

                      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                      On 28/11/2004 at 20:31, xxxxxxxx wrote:

                      Did you get my private message?

                      Robert

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

                        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                        On 28/11/2004 at 22:14, xxxxxxxx wrote:

                        yes thanks 🙂

                        Renato T.

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