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

    object mimicing the animation of a 2nd

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 268 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 07/07/2008 at 08:10, xxxxxxxx wrote:

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

      ---------
      Hi there!
      I got some object running down a conveyor. Then they get picked up by a robot and are being put on another conveyor.

      The robot is already animated, the object just needs to get attached to it and then removed again.

      The object needs to rotate and change position just like the grabber of the robot does.

      Any ideas how I could do that? I have to do by code, since there could be hundrets of objects that need to be moved like that.

      My ideas so far:
      1st:
      The grabber of the robot gets an invisible spline as a childobject, so I can use the align-to-spline-tag to get the object attached to it.
      Problem: rotation (with and without tangential)

      2nd:
      align-to-spline-tag and target-tag
      doesnt look exact

      3rd:
      coffee-tag reading rotation/position of the grabber and setting the same to the object, during the frames the object is attached to the robot
      problem: cpuload (i guess)

      4th
      constraint-tag -> parent
      perfect results, just like the object were a child of the grabber
      problem: cant get it to work by code, any help on that?
      i'll start an extra topic on that

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

        Off the top of my head:

        You might want to try a constraint chain where a parent constraint is triggered on by distance to a null. So, for example, until the object is in the right spot the parent constraint is 0, and when it reaches the right spot, it gets set to 1. Doing distance in COFFEE shouldn't produce too much load on a few hundred objects, although I'd try to limit that to within a logical area for the shot. (This is a variation on things you've already tried.)

        The real question is, though, are all the objects the same or different? If they're all identical, and you don't care about motion blur, you really only need to constrain one. You can do one loop on the animation and then just have all the boxes jump back in time over one frame. As long as the spacing between the boxes is the same you won't need any code at all.

        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 14/07/2008 at 01:20, xxxxxxxx wrote:

          Quote: Originally posted by kattkieru on 08 July 2008
          >
          > * * *
          >
          > The real question is, though, are all the objects the same or different? If they're all identical, and you don't care about motion blur, you really only need to constrain one. You can do one loop on the animation and then just have all the boxes jump back in time over one frame. As long as the spacing between the boxes is the same you won't need any code at all.
          >
          >
          >
          > * * *

          Hi, thanks for you reply, I got it working now with the constraint tag.
          Your suggestion doesn't work for me, since I get my data from another program, that simulates the whole scene and my plugin is there to process this data to visualize the scene. So there can be a lot of objects on the way to the robot, that have to wait in line until the robot picks them up. But as I said, everything works fine for now 🙂

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