-
How to loop a linear function
I have an image of a car tire rim. The lighting is different on all the “spokes”. Ultimately, I want the tire to look like the lighting is the same as it rotates. I am trying to set it up so that when I rotate the tire, the opacity of a duplicated layer, that is rotated at -72degrees (there are 5 rims, 5/360=72), changes from 0 to 100 and then loops as the rotation of the layer continues. I am not sure if this is possible or if I am just not using the right combination of expressions in the correct order. This is what I have >
s = transform.rotation;
loopOut(“cycle”);
linear(s, -72, 0, 0, 100)I hope this makes sense and that I provided as much information as I could. Thanks in advance!!!