Wednesday, August 26, 2009

[Maya] broken image plane workaround

Sometimes the image plane just stops showing up in the viewports which can be really frustrating. Not exactly sure what causes it, but it seems to happen on cameras with multiple sub groups when using the mia_exposure_simple lens shader.
If adjusting the near/far clip plane doesnt fix it, the camera is probably broken.

Heres a workaround:
1) Create a new camera
2) Copy all settings from old to new camera
3) Constrain point/orient from old to new
4) Bake keys, delete constraints
5) Create a new image plane
6) Lastly add mia_exposure_simple

-- This basically clones the bad cameras attributes onto a working one

Tuesday, August 25, 2009

[Maya] Mel Script: Node Select

I wrote this for a friend, will have to remember to translate to english later

1. Hypershaderを開いて、Nodeを選択
2. Script Editorを開く(先のCommandが出る)
3. 数字を削除して、Nodeのベース名前だけをコピー
4. 下記のScriptで[Node]の代わりに貼り付ける

select -r `ls -type [Node]`

5. Script EditorからMel ShelfまでMiddleClick+引きずらしたら、Melボタンが出る

例:
ls -st gammaCorrect1

select -r `ls -type gammaCorrect`

結果:
全部のgammaCorrect Nodeが選択になる