Message 1 of 2
[SOLVED] Animation - finding odd/even frames?
Not applicable
02-09-2011
09:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm extremely new to MEL and have limited programming ability so bear with me!
I'm trying to animate a Hummingbird's wings beating with an expression
heres what I think the mel should be doing
if (frame == EVEN ) { //even, or use the modulo operator maybe?
masterControl.wingBeat = 10
(else)
masterControl.wingBeat = -10
}
most of that's probably wrong but hey 🙂
ive tried testing this by saying
if (frame == 1) {
masterControl.wingBeat = 10
}
and that doesnt work at all
I'm using Maya 2011 if that changes anything
wingBeat is a custom attribute on the rig
Cheers,
Steve
I'm trying to animate a Hummingbird's wings beating with an expression
heres what I think the mel should be doing
if (frame == EVEN ) { //even, or use the modulo operator maybe?
masterControl.wingBeat = 10
(else)
masterControl.wingBeat = -10
}
most of that's probably wrong but hey 🙂
ive tried testing this by saying
if (frame == 1) {
masterControl.wingBeat = 10
}
and that doesnt work at all
I'm using Maya 2011 if that changes anything
wingBeat is a custom attribute on the rig
Cheers,
Steve