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

    AddJoint results -1

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 291 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 27/10/2011 at 11:23, xxxxxxxx wrote:

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

      ---------
      I just tried to move my Plugin from 11.5 to 13.
      Sadly, now the AddJoint function does not work anymore 😢

        
      n = weightTag->AddJoint(*l);  
      

      after this, n equals -1.
      *l is a valid Joint, as a call to

      (*l)->SetName("Test");
      

      works without any problems

      Sadly the documentation does not include any information why this function could return -1.

      Is this a bug within the API?
      Or what else could be the reason?

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

        AddJoint() can return -1 if the tag is not present in an object's tag list.
        Take a look at this post and the given code sample: https://developers.maxon.net/forum/topic/5251/5246_addjoint-setweight-crash&KW=AddJoint&PID=21514#21514

        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/10/2011 at 02:25, xxxxxxxx wrote:

          Worked. Thank you very much!! 🙂

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