1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

プレイブラストのカラーマネージメントを切りたい

1
Last updated at Posted at 2025-12-12

viewPortネタが多いですねぇ
今年はプレイブラストとかその辺を深堀してたようですねー

プレイブラストするときにカラーマネージメントを切りたいなぁって状況になったんです。

viwportのカラーマネージメントはUIから1クリックでOFFにできますがー

image.png

ん~ なんかこれ反映されてないような気がしますね。

プリファレンスのカラーマネージメントの項目を改めて眺めてみると

image.png

あー playblastは別設定なんですねぇ
これなら起動バッチとかに仕込んでおけば反映できそうですね。

ただ、確実にoffにしたいので処理を考えます。

シーン内のカラーマネージメント設定はdefaultColorMgtGlobalsノードに色々入っているようですね。

image.png

試しに playblastOutputTransformEnabled を offにしてプレイブラストしてみます。

import maya.cmds as cmds
cmds.setAttr("defaultColorMgtGlobals.playblastOutputTransformEnabled",False)

これはー 反映されている気がしますね。
image.png

なので、念のため原状復帰もさせることを考えるとこんな感じでしょうか。

import maya.cmds as cmds

curColorMng = cmds.getAttr("defaultColorMgtGlobals.playblastOutputTransformEnabled")
cmds.setAttr("defaultColorMgtGlobals.playblastOutputTransformEnabled",False)

##オプションは割愛
cmds.playblast()

cmds.setAttr("defaultColorMgtGlobals.playblastOutputTransformEnabled",curColorMng)

カラーマネージメント周りは難しいので正直あまり触りたくないのですが、
今回はレンダリングの設定と印象を近づけるためにプレイブラスト時にOFFにするようにしました。

ほんとはカラーマネージメント周りの設定を起動時にきちんと設定しておくのが良いんですよねぇ・・・

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?