4
$\begingroup$

I'm scripting some crowd animation. I was searching about a way to control action speed by a driver or keys.
Is there is some attribute for action speed that can be controlled? Something I can access through Python?

I found some related scripts in the game engine which is not what I needed.

$\endgroup$
2
$\begingroup$

The NLA editor.

Action Strip Scale.

Halving or Doubling, (for instance), the strip scale, doubles or halves the action speed.

Animated Strip Time.

The frame at which the fcurve is evaluated can be animated here, with keyframes, AFAIK not with drivers.

Example Strip Some examples from python console on how to access with script

>>> strip = C.object.animation_data.nla_tracks['NlaTrack'].strips['CubeAction']
>>> strip.use_animated_time
True                                                                          
>>> strip.strip_time = 100
>>> strip.keyframe_insert('strip_time', frame=200) 
True
| improve this answer | |
$\endgroup$
  • $\begingroup$ thanx batfinger this might work , i'm testing around it might be what i need exactly. $\endgroup$ – doctor3d Sep 15 '15 at 20:03
0
$\begingroup$

Consider an [action constraint]. The transform property of the [target] can be keyframed.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Please add more to this. As it is it is not an answer. $\endgroup$ – David Sep 15 '15 at 2:24
  • $\begingroup$ thanx gr8 idea realy, this might work i'll give it a try. $\endgroup$ – doctor3d Sep 15 '15 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.