Just a question on syntax for all the MEL experts here, how do you do this properly (first line is correct, i have to declare two strings to be the same value on second line)
if (`checkBox -q -v randScale` == 0)
$getScaleMin, $getScaleMax = 1;
Obviously second line currently fails, just don't know how to do it properly.
Replies
EDIT:
On second thought though if these variables are strings wouldn't the values need to be enclosed in quotes? like this:
Though in this case I'd guess you actually want these variables to be ints instead of strings so you'd have something like this:
lol, I should probably learn mel one of these days.
I had to declare blank strings before the if statement for it to work!
Solved.
I agree, I didn't understand how much you could do with MEL and improve tools before starting to learn it.
Yeah,
doesn't really work because it doesn't know what you want to do with the $getScaleMin, since you aren't declaring a new variable like this:
or assigning a value to it like:
or doing both at the same time (which is probably possible) like this:
Anyway I'm glad I could help