selection loop with a clause
I wonder if someone could point me in the right direction with this:
I have modified a script that converts all scene materials to plain random coloured materials.
I am trying to add a clause, so the script ignores materials that have a refraction colour less than black and/or have refractance map enabled.
The script as I have it is attached (it has been written to function with Vray).
Any help would be massively appreciated!
Thanks
Danny
Attachment | Size |
---|---|
channels.ms | 1001 bytes |
Comments
I have not tested this but
I have not tested this but you can test it and tell me it is works
bga
Thanks!!
Hi barigazy.
Thanks for looking at this!!
It generated an error the first time I ran it but I think that was due to an extra ) at the end.
The following error was as follows:
"-- Error occurred in anonymous codeblock; filename: ; position: 12; line: 1
-- Syntax error: at name, expected while
-- In line: mtlClassArr ="
(could you tell me how to insert code on posts please? I can't find any info on the sticky)
I am assuming that the script is halted at the point of error as nothing changes in the scene.
Any thoughts?
Many Thanks
Danny
try now
I forgot to put the close brucket in line 10
bga