-
A Little Confused about Motionscript.com example
Figured to teach myself expressions by reading up on it online. Went first to jjgifford, but was pretty overwhelmed in a very short time. Next went to motionscript.com, and that seem to be more my speed, but there’s a stuck point that I can’t figure out.
While demonstrating the if/else expression possibilities, Dan provides an example in which the opacity of an object is determined by it’s rotation. The expression is:
if (rotation < 180) 100 else 50 That works fine the first time around, but after the first revolution, the object remains at 20% opacity. On the web page, his sample object is continuously rotating and changing opacity every 180 degrees. As far as I can tell, there isn't an index parameter for rotation, like [0] would by the revolutions and [1] would be the degrees, so once the object passes the first complete rotation, it's not going back to 1 degree, but rather 361 degrees, if that makes sense. Obviously this isn't a real world problem, but I'm just trying to understand. I suppose the most logical explanation is that the continuously rotating (and opacity changing) example is just that, an example, maybe duplicated, sequenced layers or something. (You know, a couple weeks ago I wouldn't have known what a duplicated, sequenced layer was!) Anyway, any thoughts that would help clear up my confusion would be appreciated. Thanks! David Bark Lightshine Productions