EverZen
02-11-2005, 11:09 AM
Hi guys,
I am sure this is obvious, but I am really struggling over what must be one line of code. I am writing a tool that cycles through all materials in the scene (using the scenematerials command) and changes the sampling type, quality for each material. I can do this if the material is a blend, or a composite or a standard. But I cannot find a way of checking what type the "i"th material in the scence is. I.e is it a composite, blend etc.
if you use getMeditMaterial[Slot Number], then it will return the name of the material, followed by a colon and then the type.
I.e TableWoood:Composite
All I need is to check whether it is a composite or not, I dont care about the name. Once I have the type, I can apply one of the functions I have written, and then I can easily build an interface, so you can change the type and quality of sampling of all your scene textures at once, at a touch of a button/slider.
People are welcome to the script, if I can get it finished :) So enlightenment for this pesky little line would be really really appreciated.
Thanks guys :)
EverZen
I am sure this is obvious, but I am really struggling over what must be one line of code. I am writing a tool that cycles through all materials in the scene (using the scenematerials command) and changes the sampling type, quality for each material. I can do this if the material is a blend, or a composite or a standard. But I cannot find a way of checking what type the "i"th material in the scence is. I.e is it a composite, blend etc.
if you use getMeditMaterial[Slot Number], then it will return the name of the material, followed by a colon and then the type.
I.e TableWoood:Composite
All I need is to check whether it is a composite or not, I dont care about the name. Once I have the type, I can apply one of the functions I have written, and then I can easily build an interface, so you can change the type and quality of sampling of all your scene textures at once, at a touch of a button/slider.
People are welcome to the script, if I can get it finished :) So enlightenment for this pesky little line would be really really appreciated.
Thanks guys :)
EverZen
