Hi everyone!
In order to make a script that randomizes splines used for path constraint objects (that what i want does not work with pflow) .
I want to go through every Spline Knot and randomize its position
like this
addmodifier new_path (Edit_Spline ())
verts = numKnots new_path
for i=1 to verts do(
vert = getKnotPoint new_path 1 i
offs = random -pos_off.value pos_off.value
vert.x = vert.x + offs
vert.y = vert.y + offs
setKnotPoint new_path 1 i vert
updateShape new_path
)
but i found out, that the changes are made within the spline object and not within the modifier, how can i change that?
thanks in advance vor help
barigazy · 2012-08-23