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
    • Recent
    • Tags
    • Users
    • Login

    Joint Bug?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 384 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 28/09/2010 at 16:46, xxxxxxxx wrote:

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

      ---------
      After calling Polygonize() on a document, calling GetJoint() on CAWeightTag returns NULL.
      However, GetJointCount() still returns a valid count.
      If I don't call Polygonize(), then everything works as expected.

        
      CAWeightTag* wt = (CAWeightTag* ) (ob->GetTag(Tweights));  
      LONG joint_count = wt->GetJointCount();   // valid count
      for (LONG i=0; i < joint_count; i++) {  
         BaseObject *joint_ob = wt->GetJoint( i, doc ); // returns NULL!  
      }  
      

      Also, is Polygonize(TRUE) buggy?  Because my scene doesn't animate after I call Polygonize(TRUE) on a document.
      What specific animation properties are lost if I don't pass TRUE?

      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 30/09/2010 at 06:45, xxxxxxxx wrote:

        I can confirm the Joint bug. Strangely it seems only to happen with R12 files. Polygonizing pre-R12 files will list the Joints.

        Polygonize(TRUE) seems to work fine here.

        cheers,
        Matthias

        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 30/09/2010 at 07:15, xxxxxxxx wrote:

          Ok, it seems to work if the mesh and the joints share the same parent object. It has nothing to do with pre-R12 files after all. I will report it as a bug.

          cheers,
          Matthias

          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 30/09/2010 at 17:34, xxxxxxxx wrote:

            Thanks!  I guess will have to avoid calling it for now.

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