How to set keyframe tangents from Python?

   1494   2   0
User Avatar
Member
47 posts
Joined: 7月 2014
Offline
I'm scripting the creation of keyframes but even if I have two keyframes at say 1.0 that are multiple frames away from each other, the value can be a hair above 1.0 in between the keyframes because of bezier tangents on the keys so I need to make them constant type but the docs don't explain how the hou.constant is invoked from what I can tell.
Edited by dgirard - 2020年4月5日 12:00:44
User Avatar
Member
8785 posts
Joined: 7月 2007
Online
keyframe.setExpression('constant()')
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
47 posts
Joined: 7月 2014
Offline
thanks.
  • Quick Links