On 08/04/2015 at 12:23, xxxxxxxx wrote:
I know I can use Spline Wrap to wrap a spline around another spline.
In my case I want to have more control and learn more about splines and transformations.
So, I want to wrap or align a helix around, for example, a circle.
At this moment I am doing this straight forward, just buy adding the helix point x,y coordinates to the spline point x,z coordinates:
newPoints = []
for i,point in enumerate(splinePoints) : #set position
#print i, point
newVector = c4d.Vector(point.x + helixPoints[i].x, point.y, point.z + helixPoints[i].z)
newPoints.append(matr*newVector)
newSpline = CreateSpline(null, newPoints)
But as you can see, it is not taking "align" into account.
The sides are ok, but the top and bottom are too flat.
How can I solve this?
-Pim