How to set keyframe tangents from Python?

   1525   2   0
User Avatar
Member
47 posts
Joined: July 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 - April 5, 2020 12:00:44
User Avatar
Member
8836 posts
Joined: July 2007
Offline
keyframe.setExpression('constant()')
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
47 posts
Joined: July 2014
Offline
thanks.
  • Quick Links