Skip to content

Instantly share code, notes, and snippets.

@taikomatsu
Created January 11, 2017 17:09
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/65dec69180efc37851c350784efcf76b to your computer and use it in GitHub Desktop.
Save taikomatsu/65dec69180efc37851c350784efcf76b to your computer and use it in GitHub Desktop.
# filecache SOPにボタンを追加して、そのボタンのCallback Scriptに登録して使う
# filecacheと同名のropにジャンプする
# ジャンプした際、対象のropは選択状態になっている
node = hou.pwd()
out_node = '/out/{}'.format(node.name())
hou.hscript('panepath -f {}'.format(out_node))
hou.node(out_node).setSelected(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment