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

    Constraint Tag - Too many relationships

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 311 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/10/2010 at 04:28, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   r12 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

      ---------
      Hi there,

      I'm attempting to create a script (or xpresso if possible) to automatically reference target objects in the constraint tag.

      eg: I have 100 cubes and I want them to all to have a minimum distance clamp on each other. That is 10 000 relationships, too many to do by hand.

      I've looked through the official COFFEE documentation but cannot see anything related to this.

      Is there something I'm missing?

      Adam

      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/2010 at 18:19, xxxxxxxx wrote:

        Having a lot of objects keep a minimum distance to each other sounds more like a task for a particle system. Try doing it with TP 😉

        Cheers,
        Jack

        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 29/10/2010 at 07:27, xxxxxxxx wrote:

          Hey, thanks for the reply.

          Unfortunately I'm not sure that TP is way forward for what I'm trying to achieve.

          Ultimately, what I'm creating is a large curved surface with lots of screens arranged in a mosaic formation. There are however a few variables to consider.

          1. There are 6 different types of screen (size)

          2. I need to retain full creative control over the locations and densities of the screen arrangement. (Over the course of the structure, density will be different depending on location)

          3. There needs to be a minimum distance so the objects don't collide.

          http://adamheslop.com/blog/images/Mosaic.jpg

          I'm quite new to TP and probably don't fully understand the full potential or limitations but I don't think you can control the particles individually?

          Constraints therefore seem to be the right tool to use but I need to be able to modify the modes and distance parameters for many targets simultaneously.

          If there is a way to iterate through the target list of a tag in xpresso?

          Also does anyone know how to access constraint tag information parameters through COFFEE?

          Cheers

          Adam

          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 03/11/2010 at 03:37, xxxxxxxx wrote:

            Unfortunatly it's not possible to iterate through description elements in COFFEE.

            The only thing you can do is to directly access the link fields if you know the number of them.
            For instance the first clamp link field has the ID 50001, the second 50011, the third 50021 and so on. You create a clamp constraint and add all the targets by calling CallButton(). The ID of the button is ID_CA_CONSTRAINT_TAG_CLAMP_ADD. Then you fill the link fields.

            cheers,
            Matthias

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