maurizio1974 Posted February 20 Share Posted February 20 Hello I am trying to set the correct slope and accelleration on two keyframe so that I can get an easy put on the first keyframe. I know that there is the setSlope and setAccell method for a hou.keyframe , but those value change depending on the distance and the values of the respective keyframes. I know in the animation editor there is the button that calculates that and set it on both keyframes so tha thte curve properly goes from easyout to the second keyframe , but I don;t know what script or function that button runs. Any help would be greatly apriciated Cheers Quote Link to comment Share on other sites More sharing options...
maurizio1974 Posted 17 hours ago Author Share Posted 17 hours ago Hello Inc ase somebody else bump into this , I found a solution by setting hte keyframe as linear, then changing it to bezier and then set the slope to 0 that way houdini calculate the correct easy in/out of the curve # Here I make the keyframe and set it to livear() key= hou.Keyframe() key.setExpression('linear()') key.setValue(10) parm.setKeyframe(key) # Then re-set the keyframe again after changing hte function of the curve as bezier() key.setExpression('bezier()') key.setSlopeAuto('on') key.setSlope(0) key.setValue(10) parm.setKeyframe(key) Obviously you need two keyframes to make it work and than change the function of the curve and this does the trick , for me at least Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.