On 13/02/2015 at 01:03, xxxxxxxx wrote:
I have this script for my own Helix spline:
spl_A = doc.SearchObject("Spline_01")
spl_pntC = 36
spl_start = c4d.Vector (100.0, 0.0, 0.0) # Spline Size
pnt_rad = utils.Rad((360.0 + 10.0) / spl_pntC)
spl_end = c4d.Vector(0.0, 1.0, 0.0) #Movement
spl_A.SetPoint (0,spl_start)
spl_A.ResizeObject(spl_pntC)
for id in xrange(1,spl_pntC) :
spl_start = utils.MatrixRotY(pnt_rad) * utils.MatrixMove(spl_end) * spl_start
spl_A.SetPoint(id, spl_start)
spl_A[c4d.SPLINEOBJECT_TYPE] = c4d.SPLINETYPE_AKIMA
# Spline does not close
spl_A[c4d.SPLINEOBJECT_CLOSED] = False
# Update of object
spl_A.Message (c4d.MSG_UPDATE)
I have a problem with my "MatrixMove" part. It does do what it is suppose to but I want to read it in cm eg: 21cm and not the matrix data. How would I do that :blush:
I want to adjust the height up and down with a control
Thanks for any help