
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there my fellow Maya shamans, I've got an easy to explain, hard (for me) to pull out situation, that I hope you ladies & gentlemen can enlight me (and save learning time) : ) .
The situation is the following:
I want Set drive a rotating motion. I have an object X, so when the attribute value (in a controller) is 1 it rotates (in a continuing loop), and when it's 0 it doesn't. So far so good, I can set that up, not as a driven key, but as an expressions with a condition: if attribute == 1 {rotation = time * X }, right?
Perfect, now... the problem is to retrieve that last rotating point. I thought I'd need a parallel time counter. A float value that keeps track of the seconds "attribute == 0", and substract that to "time" whenever is "attribute == 1" (let's called this parallel time as timeAlt), and then I'd be at the last point the rotating condition was true. Something like if attribute == 1 {rotation = timeAlt * X }
My problem right now is... I don't know how to set up a counter/timer in MEL. I've read some doc about.... "timer" and "timeX" and whatever, but I don't know how to implement them, andddd, as usual, there's so little info around : D.
Bottom line: I'M NOT A CODING Andy : ), that's why I come here and kneel for help.
Thanks in advance ppl.
Bye!
Solved! Go to Solution.