No More Retake

3DCG屋さん向けTips&Referenceサイト

メニュー

Houdini:自動Cookを止める

Related Posts Plugin for WordPress, Blogger...Houdini備忘録の回。

Houdiniの重いシーンで、「ちょっと今はCook(計算)しないで」って時があります。
そんなとき、右下にある、Auto UpdateをManualに変更すると手動更新しない限りCookしないっぽい。

“Manual”の場合、更新ボタンを押さない限りシーンはCookされない。

ちなみに他のモードはこんな感じ。

Auto Update ・・・ デフォルト。自動でシーンを更新
On Mouse Up ・・・ マウスを放したら更新。スライダぐりぐり変更する時ようかな
Manual ・・・ 手動Cookモード

On Mouse Upとか使ったことないなぁ。

で、こっからが本番
“Auto Update”と”Manual”をショートカットで切り替えて使いたいなぁ、と思ったので調べてみた。
そしたら、あった

手順を書くと
①:カスタムShelfを作成
②:作成したShelfにTool作って”Auto Update”と”Manual”を切り替えるスクリプトを書く
③:作成したShelfにショートカットを割り当てる

実際にやってみます。

①:カスタムShelfを作成。

Shelfの右のほうにある+ボタンをおして、出てきたメニューから”New Shelf”を選択。
新しく作成するShelfの名前を付けます。

 

②:作成したShelfにToolを作成します。

Shelf上で右クリック。出てきたメニューから”New Tool…”を選択します。

Optionsタブで、Toolの名前を決め(ここではTool名をtoggleCookとしました)、
Scriptタブで”Auto Update”と”Manual”を切り替えるスクリプトを書きます。
スクリプトはこんな感じ。

import hou
mode = hou.updateModeSetting().name()
if mode == 'AutoUpdate':
    hou.setUpdateMode(hou.updateMode.Manual)
if mode == 'Manual':
    hou.setUpdateMode(hou.updateMode.AutoUpdate)

 

③:作成したShelfにショートカットを割り当てる

Hotkeysタブでショートカットキーを割り当てます。

HotKey Managerから、Houdini -> 作成したTool名、を選択してショートカットキーを割り当てます。
(ここではTool名をToggleCookとしました)

これで、設定したキーでCookのAuto/manual切り替えができるはず。

以上。
間違い等ありましたらご指摘を。Related Posts Plugin for WordPress, Blogger...
使用バージョン:Houdini13

関連記事

  1. 2018.05.21

    Houdini:表紙TypeB
  1. Shohei Okazaki 2014.10.17 12:06pm

    自分の場合はHotkey ManagerからHoudini > Update Mode ‘Always’,Update Mode ‘Changes’,Update Mode ‘Never’に、それぞれショーットカットを割り当てて使ってます。
    てかPythonでコントロール出来たんですね。これは色々と使えそうです。ありがとうございます。

    • 1
    • 0
    • Kitagawa 2014.10.17 1:24pm

      ホントだ!
      自分で作らなくても、”Update Mode”なるものがあったのですねw
      知りませんでした。
      良いことを教えてもらいました。
      ありがとうございますm(_ _)m

      • 1
      • 0

このサイトについて

3DCG Tipsサイト。Houdiniの記事が多めです。

RSS

follow us in feedly

Archives

  • 2024 (1)
  • 2023 (2)
  • 2022 (9)
  • 2021 (14)
  • 2020 (46)
  • 2019 (17)
  • 2018 (33)
  • 2017 (29)
  • 2016 (36)
  • 2015 (64)
  • 2014 (54)
  • 2013 (60)
  • 2012 (55)

スポンサードリンク

言語切り替え

  • English (United States)
  • 日本語

スポンサードリンク

言語切り替え

  • English (United States)
  • 日本語

Houdiniを使えるようになる本


Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(): Failed to enable crypto in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(http://api.facebook.com/restserver.php?method=links.getStats&urls=http%3A%2F%2Fnomoreretake.net%2F2014%2F10%2F17%2Fhoudini_stopcook%2F): failed to open stream: operation failed in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(): Failed to enable crypto in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(http://api.b.st-hatena.com/entry.count?url=http%3A%2F%2Fnomoreretake.net%2F2014%2F10%2F17%2Fhoudini_stopcook%2F): failed to open stream: operation failed in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132