How to set keyframe tangents from Python?

   2156   2   0
User Avatar
Member
47 posts
Joined: 7月 2014
オフライン
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
9418 posts
Joined: 7月 2007
オフライン
keyframe.setExpression('constant()')
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
47 posts
Joined: 7月 2014
オフライン
thanks.
  • Quick Links