Hi,
How can I get the first key on a path constraint controller ?
Thanks.
Forum topic · General Scripting
getKeyTime of the first key on a path constraint controller
By titane357 · 2018-01-31
Description
Comments (6)
.
jahman · 2018-01-31
exactly
titane357 · 2018-01-31
ok :-)
jahman · 2018-01-31
<controller>.<property>.keys[1]
titane357 · 2018-01-31
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 · 2018-01-31
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 · 2018-01-31
Thanks a lot, it works !!!!
you wrote : $.position.controller[2]
[2] is because of the list controller position ?