Skip to content

Instantly share code, notes, and snippets.

@taikomatsu
Created November 25, 2020 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taikomatsu/5daec3ff8b504b018c228cd68884d966 to your computer and use it in GitHub Desktop.
Save taikomatsu/5daec3ff8b504b018c228cd68884d966 to your computer and use it in GitHub Desktop.
[houdini] get keyframe's frame from specified parm
# 任意のノードのパラメータのキーフレームの打たれたフレームを取得する
hou.node('/obj/work/mynode').parm("parm").keyframes()[index].frame()
# 例: switchノードのinput1の任意のパラメータの一番最初のフレーム以上の場合、switchのinputを1にするExpression
hou.frame()>=pwd().inputs()[1].parm('parm').keyframes()[index].frame()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment