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

    About Correction Deformmer [SOLVED]

    SDK Help
    0
    7
    572
    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

      On 20/09/2015 at 06:58, xxxxxxxx wrote:

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

      ---------
      Hello.

      When you add a Correction Deformmer from program Deformmer it does not function.
      What do I do if I want to function normally.

      BaseObject* defo=BaseObject::Alloc(1024542);
      if(!defo) return false;

      doc->InsertObject(defo, NULL, NULL);

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

        On 20/09/2015 at 10:04, xxxxxxxx wrote:

        1. The Correction Deformer allows modifications on the deformed points of a deformed object.

        2. In order to work, it must be added as a child of the deformed object (below other deformers for point editing).

        3. After inserting something into the document, you should send an update message and add an event:

        defo->Message(MSG_UPDATE);
        EventAdd();
        

        This allows the object and document to update their information.

        All deformers work on other objects by being added as children of the object to be deformed.

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

          On 20/09/2015 at 19:05, xxxxxxxx wrote:

          Thank you for letting me know.
          However, it seems can not be adjusted even if the deformers that was generated by the program that added the code that you taught me a child of the polygon object.

          Do not tell your code if possible?

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

            On 21/09/2015 at 02:11, xxxxxxxx wrote:

            Hello,

            I'm afraid I don't understand what you are saying. What exactly is your question?

            Best wishes,
            Sebastian

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

              On 21/09/2015 at 08:21, xxxxxxxx wrote:

              English I'm sorry, not be explained well because it can not be.
              If you generate a Correction Deformmer by adding taught code I tried to question because it could not be edited in the polygon mode.

              I would like to consider the outside of the method.
              The answer to the person who I am very grateful.
              Thank you very much.

                
                   BaseDocument* doc = GetActiveDocument();   
                   BaseObject* op = doc->GetActiveObject();   
                   if (!op) return false;   
                   BaseObject* defo = BaseObject::Alloc(1024542);   
                   if (!defo) return false;   
                   defo->InsertUnderLast(op);   
                   defo->Message(MSG_UPDATE);   
                   EventAdd();   
              
              1 Reply Last reply Reply Quote 0
              • H
                Helper
                last edited by

                On 21/09/2015 at 09:43, xxxxxxxx wrote:

                Hello,

                the Correction deformer requires a (hidden) polygon and point tag. You can simple add these tags to the deformer using MakeTag() and the IDs Tpolygon and Tpoint.

                Best wishes,
                Sebastian

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

                  On 21/09/2015 at 17:17, xxxxxxxx wrote:

                  After you have added the tag as it taught me Correction Deformmer can now be edited.
                  To everyone I am very grateful.
                  thanks so much.

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