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

    constraint tag

    SDK Help
    0
    4
    325
    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 07/07/2008 at 08:14, xxxxxxxx wrote:

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

      ---------
      Hi,
      how can I set the fields of the constraint-tag (especially the parent ones)?
      I know tcaconstraint.h, but the problem seem to be, that you can add more than one target. Anyone got the right IDs?

      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 08/07/2008 at 04:53, xxxxxxxx wrote:

        Ok, took sometime, here is how it seems to work:
        For PSR:
        ID
        10000 = target Count
        10001 = 1st target (Link)
        10002 = 1st target Weight
        10003 = antother link, dont know which object yet
        10004 = unknown vector
        10005 = 1st target checkmark Position
        10006 = 1st target checkmark Scale
        10007 = 1st target checkmark Rot

        2nd target begins at 10011 etc
        for Aim etc it's pretty much similar, just begins with 20001

        Now it would be interesting to know how to add more targets by code (simulating pressing the button? 🙂 ).

        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 08/07/2008 at 05:07, xxxxxxxx wrote:

          If you look in the file you mentioned (tcaconstraint.h) you will find all the IDs you need. e.g. as you found the PSR dynamic IDs start at 10000:

          > ID_CA_CONSTRAINT_TAG_PSR_TARGET_COUNT = 10000

          To add them you can send a command message (e.g. ID_CA_CONSTRAINT_TAG_PSR_ADD) to the tag (MSG_DESCRIPTION_COMMAND) or you can add the items to the BaseContainer yourself. Just increase the target count long in the container and fill in the data, the tag will then use them.

          e.g. to access each target you can use something like this:

          > base=ID_CA_CONSTRAINT_TAG_PSR_TARGET_COUNT+i\*CONSTRAINT_ELEMENT+1;

          where:

          > #define CONSTRAINT_ELEMENT     10

          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 08/07/2008 at 05:25, xxxxxxxx wrote:

            alright, thanks

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