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

    CAWeightTag GetJoint() not working ??

    SDK Help
    0
    4
    331
    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 26/09/2007 at 09:16, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R10 
      Platform:      Mac OSX  ; 
      Language(s) :

      ---------
      I'm having trouble getting joint references from a CAWeightTag.
      I can get joint count, weight count, and weights themseves, but not a reference to a joint.
      using wtag->GetJoint(i, NULL ) should return a joint ref, but fails, I have tried passing the BaseDocument reference even though the docs say I can pass null

      please help.

      > _
      > static void GetWeightInfo(CAWeightTag *wtag) {
      >      if(LONG n = wtag->GetJointCount() ) {
      >           GePrint("weight joint count " + LongToString(n) );
      >           for(LONG i=0; i<n; i++) {
      >                if(BaseObject *jointRef = wtag->GetJoint(i, NULL ) ) {
      >                     GePrint(jointRef->GetName());
      >                }
      >                if(LONG nw = wtag->GetWeightCount(i) ) {
      >                     GePrint(String("joint ") + LongToString(i) + String(" weight count ") + LongToString(nw) );
      >                }
      >           }
      >      }
      > }
      > _

      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 28/09/2007 at 09:18, xxxxxxxx wrote:

        Matthias, anyone? where are you? I need your help with this 😞

        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 28/09/2007 at 09:25, xxxxxxxx wrote:

          you can pass NULL for example when the joint is not attached to a document. However, you should, if you can always pass a Document I highly assume.

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

            resolved
            I was calling doc->Polygonize();
            which changes changes to the joints as well.

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