setting a property in multiple oFusion materials

ahpook

18-12-2007 12:09:27

Hello,

suppose I have n oFusion Materials. Is it possible to quickly set a property for all materials? E.g. I'd like to turn off "lighting" for all the oFusion materials in the scene.

Alternatively, can one set the rules for batch conversion of materilas, such that, when I batch convert max materials, I can decide if lighting will be set on or off?

Thanks for any help!

Lioric

18-12-2007 15:29:47

See this tutorial for detailed information on working with materials and batch setting their properties (changing settings in all of the scene or selected materials)

http://www.ofusiontechnologies.com/support/1299/support_1299_00.html

ahpook

19-12-2007 10:20:11

Thanks a lot! That solved my problem.

Btw, for those interested, I was also able to set properties in the texture unit of all materials by using e.g. (this sets anisotropic filtering)

mtl[2][1][1].filtering = 3

so I guess that, for mtl, the third index refers to the first texture unit, the second to the first pass, but why the 2 in the first index?

Lioric

19-12-2007 15:12:24

Its because an internal setting

For next versions, aliases are implemented to access passes or texUnits by names ( mtl.pass[1].texUnit[1].property )