I have a very basic problem. I have a very large scene, with plenty of materials, and I’m trying to change the selfillumination amount all at once.
I came across a thread that appears to be what I need:
(
if hasProperty s “selfIllumAmount” then
s.selfIllumAmount = amount
else if classof s == multiMaterial then
for m in s where hasProperty m “selfIllumAmount” do
m.selfIllumAmount = amount
)
When I try to interpret it and input amounts, I receive a syntax error that is expecting <factor> at ).
When accessing the help file for <factor>, it brings me to the help file home screen.
Is “s” a variable that I had to define? Probably my main problem is that I don’t fully understand what the block is trying to achieve. I understand that it’s testing to see if the self illum property exists, and if it does, set it to the desired percent. I’m under the impression that the second part states that if “s” is a multimat then test the materials inside “s” and change their self illum amount!
Am I way off there?
Judging by the seeming complexity of the other threads in this section, this post seems a little unworthy, but I figure I’d take a shot.
I’m just beginning to learn maxscript, and am at the point that I recognize where a simple little script would be more efficient, but am unable to achieve the result, and spend my time fumbling around in syntax.
I’m currently working through the John Wainwright video tutorials.
Thanks for taking the time to read this over, and I appreciate any input you folks may have!