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

    Making an IK tag (Tcaik)?

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 710 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 18/01/2012 at 09:29, xxxxxxxx wrote:

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

      ---------
      I can't find any reference to Tcaik (except for its own .h/.res/.str files) and definitely no Plugin ID to use to make one.  I've scanned the entire Cinema 4D R13 install and it didn't find a reference to the Plugin ID (not even in the c4d_symbols.h!).  And it is not available as a Command so I'm at a loss (except for a bit of coding to display the tag's Plugin ID myself).

      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 18/01/2012 at 10:01, xxxxxxxx wrote:

        Not sure if this is what you're asking for:

        #include "..\..\..\..\resource\modules\ca\res\description	caik.h"  
          
          BaseDocument *doc = GetActiveDocument();  
          BaseObject *obj = doc->GetActiveObject();  
         if(!obj) return FALSE;  
           
          obj->MakeTag(1019561, NULL);                 //Create a new IK tag  
          BaseTag *newtag = obj->GetFirstTag();        //Find the new tag and give it a new variable  
          newtag->SetParameter(DescID(ID_CA_IK_TAG_ENABLE), GeData(TRUE), DESCFLAGS_SET_0); //Enable "Use Ik" option
        

        -ScottA

        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 18/01/2012 at 10:09, xxxxxxxx wrote:

          Where did you find the Plugin ID?  It is not anywhere in the install (incl. resource folder).  And it didn't show up in the Command Manager which shows the Plugin ID.

          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 18/01/2012 at 10:28, xxxxxxxx wrote:

            I created the tag by hand.
            Then dragged it into the bottom of script console window where it displayed this: temp(1).
            So I edited that to this: println(temp(1)->GetType())
            Which gave me the ID#1019561 in the console.

            I went searching for that number using windows search tool. And oddly enough. I found it listed in a file called "interface_icons.txt" of all things.
            *Seems like a strange place to enumerate ID# to me personally.

            -ScottA

            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 18/01/2012 at 11:53, xxxxxxxx wrote:

              Thanks for the information.

              I hate when they do this.  It makes our work a bit more difficult, mystical and an art-form instead of being a regimented, clear-cut process.

              Now I can convert my IK chains to R12+ IK chains. 🙂

              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 18/01/2012 at 12:09, xxxxxxxx wrote:

                NP.
                I'm just thrilled I could finally help you out for once.
                Rather than you always helping me out.

                -ScottA

                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 19/01/2012 at 01:31, xxxxxxxx wrote:

                  Originally posted by xxxxxxxx

                  I went searching for that number using windows search tool. And oddly enough. I found it listed in a file called "interface_icons.txt" of all things.
                  *Seems like a strange place to enumerate ID# to me personally.

                  "interface_icons.txt" is just a file listing all the interface icons ID#.

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