getKeyTime of the first key on a path constraint controller

Hi,
How can I get the first key on a path constraint controller ?
Thanks.

Comments

Comment viewing options

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

.

exactly

titane357's picture

ok :-)

ok :-)

jahman's picture

.

<controller>.<property>.keys[1]

mxs reference

titane357's picture

Hi, thanks for answer I read

Hi, thanks for answer

I read a lot of things and tried a lot of things but don't work.

I have an object constrainted to a spline.

I write :
gkt = getkeytime $.pos.controller.Path_Constraint.controller.percent.keys[1]
I get:
-- No ""getKeyTime"" function for #Bezier Float key(1 @ 33f)
33f is the good value, but I can't "get" it.

I write:
$.pos.controller.Path_Constraint.controller.percent.keys[1]
I get :
#Bezier Float key(1 @ 33f)

arghh

jahman's picture

.


getpropnames $.position.controller[2].percent.keys[1]
#(#time, #selected, #value)
$.position.controller[2].percent.keys[1].time
0f
$.position.controller[2].percent.keys[1].value
0.0
$.position.controller[2].percent.keys[1].selected
false

titane357's picture

Thanks a lot, it works

Thanks a lot, it works !!!!
you wrote : $.position.controller[2]
[2] is because of the list controller position ?

Comment viewing options

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