SuperRune
06-17-2003, 05:17 PM
Hi,
I am trying to learn Maya expression, and I have two embarassing questions to ask. I hope they're not too basic, but I am having trouble finding the solution in the documentation. Also, my english isn't that great, so I sometimes can't find the exact english synonym to what I'm searching for.
First,
Is there a way I can include two conditions for each step inside an if...else?
Say I want something to occur at frame intervals; something from frame 20-55, then something from frame 56-61, and so on. There doesn't seem to be a way of saying "if (frame >56 and <61) {then..." Is there some other way to do this?
Second,
How can I put a variable inside an attribute? If I have ten cameras, each named cam01, cam02 etc - can I do something like this:
box.translateX = cam[number].translateX ??
I am new to programming, so please have mercy!
Thanks,
Rune
I am trying to learn Maya expression, and I have two embarassing questions to ask. I hope they're not too basic, but I am having trouble finding the solution in the documentation. Also, my english isn't that great, so I sometimes can't find the exact english synonym to what I'm searching for.
First,
Is there a way I can include two conditions for each step inside an if...else?
Say I want something to occur at frame intervals; something from frame 20-55, then something from frame 56-61, and so on. There doesn't seem to be a way of saying "if (frame >56 and <61) {then..." Is there some other way to do this?
Second,
How can I put a variable inside an attribute? If I have ten cameras, each named cam01, cam02 etc - can I do something like this:
box.translateX = cam[number].translateX ??
I am new to programming, so please have mercy!
Thanks,
Rune
