ladaojeifang Posted September 16, 2014 Share Posted September 16, 2014 How can i set a key frame on a string attributive with python? in houdini. Quote Link to comment Share on other sites More sharing options...
pezetko Posted September 16, 2014 Share Posted September 16, 2014 import hou stringParm = hou.parm('/obj/box_object1/box1/s') #string parameter named s currentFrame = hou.frame() key = hou.StringKeyframe() key.setFrame(currentFrame) # set keyframe.frame() to current frame key.setExpression('keyframed on '+str(currentFrame)+' frame') stringParm.setKeyframe(key) # apply keyframe 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.