fish-msk
10-30-2010, 09:00 AM
Hi guys!
My task doesn't seem to be simple, so maybe you give me some ideas, how to solve it.
I have atoms of DNA (spheres, primitives) arranged in 3D space in a helix, and I also have a helix-spline, which I want to animate (make unwinding of a DNA molecule). The problem is: how to connect every atom (sphere) with the point on the helix-spline? I need some kind of advanced aligning to a spline, when an object itself remains at its current position, but becomes connected to a spline.
I can do it by hand: select each sphere, make it editable, then move modeling axis exact on a spline, and then add to a sphere 'Align to spline' tag and adjust the position % to match the original position of a sphere. But, first of all, this way is not accurate (I can't get the same position for the sphere which it had before aligning to the helix-spline), and, second, when you have hundreds of such spheres, this becomes difficult to perform. Any ideas how to do this aligning through the script or XPresso?
Thanks in advance for your attention!
Screenshot of my scene:
http://protein.nmr.ru/fish/c4d/align_to_helix.jpg
Or the scene itself. (http://protein.nmr.ru/fish/c4d/align_to_helix.c4d)
My task doesn't seem to be simple, so maybe you give me some ideas, how to solve it.
I have atoms of DNA (spheres, primitives) arranged in 3D space in a helix, and I also have a helix-spline, which I want to animate (make unwinding of a DNA molecule). The problem is: how to connect every atom (sphere) with the point on the helix-spline? I need some kind of advanced aligning to a spline, when an object itself remains at its current position, but becomes connected to a spline.
I can do it by hand: select each sphere, make it editable, then move modeling axis exact on a spline, and then add to a sphere 'Align to spline' tag and adjust the position % to match the original position of a sphere. But, first of all, this way is not accurate (I can't get the same position for the sphere which it had before aligning to the helix-spline), and, second, when you have hundreds of such spheres, this becomes difficult to perform. Any ideas how to do this aligning through the script or XPresso?
Thanks in advance for your attention!
Screenshot of my scene:
http://protein.nmr.ru/fish/c4d/align_to_helix.jpg
Or the scene itself. (http://protein.nmr.ru/fish/c4d/align_to_helix.c4d)
