2009年11月24日 星期二

如何用slim cmd改shader參數


常用的基本指令

選取想要的shader node在slim cmd下執行,來找出它的slim代號
slim GetAppearances -selected 1

或是可以直接用shader node的名字(Diffuse_2)來找出它的slim代號
slim GetAppearances -name "Diffuse_2"
通常它會output代號會類似 funcXXX等等 (XXX代表數字)

利用找出來的node代號在輸入並找出它的properties名字(Intensity)的代號
func9 GetProperties -name "Intensity"

再利用properties的代號來找出它的值
parm81 GetValue

我們可以利用SetValue來更改Diffuse_2的Intensity的值(0.5)
parm81 SetValue 0.5

或是一個command line 的話,如下
[[slim GetAppearances -name "Diffuse_2"] GetProperties -name "Intensity"] SetValue 0.5


沒有留言: