Created
November 25, 2020 03:41
-
-
Save taikomatsu/5daec3ff8b504b018c228cd68884d966 to your computer and use it in GitHub Desktop.
[houdini] get keyframe's frame from specified parm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 任意のノードのパラメータのキーフレームの打たれたフレームを取得する | |
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