In my production I was asked to make a object rotate like a fan with the help of a switch. So I created a attribute with values 0 to 3 (float) and multiplied the rotations according to the requirement.
This is how the requirement was.
slow speed = 1/200 (round/frames)
medium speed = 1/150 (round/frames)
fast speed = 1/100 (round/frames)
so when the attribute is at 0 it doesn’t rotate, when it is at 1 its at slow speed and so on.
The process I did this was I created a set driven key with the attribute and a multiply divide (input2Y) node with values
0 - 0
1 - 1
2 - 1.5
3 - 2
Now I keyed the input1Y of the node at 0 and 300 frame with transition from 0 to 360 degrees with a linear curve. The I connected the OutputY to the object which I need to be rotated.
The problem with this setup is it rotates fine when the values in the attributes are 0,1,2 or 3. But if it is a transition from one speed to another they don’t work properly. I haven’t been able to figure out a solution for this problem.
Here is the maya file to check what exactly I’m trying to talk about.
Sorry, this is not a mGear related issue. Could anyone help me with this.