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