spline vertex animation

hello

I have a problem with a spline vertex that I want to attach to an object in my scene. I am trying to do it like that :

b = $crochet
s = $cable_crochet
 
animateVertex s #all
 
cont = s[4][#MASTER][2].controller = point3_script()
cont.script = "$crochet.pos"

but vertex is not going to the right position,(but it's animation follows the object it is attached to ....onliy position is wrong) I just can't understand why.

Does somebody have a clue ?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
crazyosachou's picture

well, thank for this

well, thank for this explain!!but i try this, no way
i don't know yet how use it exactly...plz
we supose a spline $S , write me a short script from A to Z,(supose that the splineshape $S is selected )
wich animate the 1st vertex from his initial position to for example [10,25,100] at the frame 25f
it mean :

at time 0f ( $S 1st vertex position is "his own pos")
at time 25f ($S 1st vertex position is [10,25,100])

or as u want, the issential in this, show me exactly how animate it,for the rest i'll work on it!!!
thx very much :)

learn more,learn as fast as u can, coz u can be not able to learn more tommorow!!

MrGAG's picture

hi do you plan to animate

hi

do you plan to animate vertex with keyframes, or you plan to script an animation controller ?

s = $my_spline
animateVertex s #all
-- #all or an array of vertices you want to animate

this will let you access MasterController of your spline.
and then, assign a controller to it

cont = s[4][#MASTER][2].controller = point3_script() // or any controller you want

hope it helps ....

crazyosachou's picture

oupps sry :) it's the first

oupps sry :) it's the first time i try to reply!!
well guys, can one of u help me!?
i want just a simple script to animate a splines vertex:
for expamle,
splineshape = $spline
i want to animate 1 vertex (for example 3rd one )and just one move, i don't need more!!!
cause i try a lot to animate splien, no way :s

THX !!

learn more,learn as fast as u can, coz u can be not able to learn more tommorow!!

crazyosachou's picture

learn more,learn as fast as

learn more,learn as fast as u can, coz u can be not able to learn more tommorow!!

learn more,learn as fast as u can, coz u can be not able to learn more tommorow!!

MrGAG's picture

I have just found the

I have just found the solution...
I had to substract position vector of vertex it self

cont.script = "$crochet.pos - $.pos"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.