Hey folks, having a noob moment with MAXScript.
I've got this simple bit of code.
for i = 1 to 100 do
(
if WM3_MC_HasData $.Morpher i == false then
(
print i
)
)
I just wanna add in a condition so the loop stops when it's found something matching false.
I've looked at the do/while loops but I can't seem to get it to work at all. I've been looking for an example that is do/while that has a "for" but can't find one.
Someone help my noobish ass please.
Replies
Will print to 10 then stop.
http://www.scriptspot.com/3ds-max/tutorials/maxscript-coding-standards
4.3 explains that using a break is "wrong". Also, it's kinda bugging me that I don't know how to get this working. It seems like it should be pretty simple.
If this was C# I'd just put a while function around all of it, but I dunno how to get round this in MAXScript.
I think this should do it