Ivx make use analog clock Experience

It has been used in a previous post and track timeline to achieve a lot of effects, and today we do an analog clock. The main idea is used as a dial, respectively, as three rectangular hour, minute and second hands, each track is provided by their proportional relationship between the number of revolutions at the same time axis.

1. Dial
first is to add an elliptical component, where we need to set its origin horizontal and vertical coordinates are 50%, XY coordinates of this component is its oval center stores the coordinates, the XY coordinates but also used to set the pointer in our time .
Here Insert Picture Description
2. Add pointers
pointers to display a rectangular, because the pointer to the center point of rotation around the dial, so we have to coordinate origin of the rectangular coordinate origin of the ellipse is provided in the same position. Thus the origin of the rectangular first set abscissa is the 50%, 100% of the ordinate is the origin, i.e., the intermediate position of the rectangular boundary, and then set the coordinates of the rectangle of the ellipse as the component (50,50). Minute and second hands is the same reason, but a rectangular shape and color change.
Here Insert Picture Description
3. track
the last track is set up, we unified management track hour, minute and second hands in the timeline. In fact, this step is computationally more values to one complete revolution clockwise 360 ° as a reference, the locus hour to add two keyframes, 0s when the hour hand is in the initial state, when the hour hand indicates the end of the 10s timeline rectangular rotational angle is 360 °. Track minute and second hands is the same token add two keyframes, and the process clockwise 360 ° in total for 12 hours, one hour 360 ° rotation of the minute hand, so the total rotation of the minute hand 4320 °, and 12 hours is 720 minutes, a minutes seconds rotation of 360 °, the total rotation of the second hand 259200 °.
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Now we let the timeline automatically loop you can see the effect of an analog clock friends.
Here Insert Picture Description
Summary
to note that our timeline is only 10s, and in the hour long demo we turn 360 on behalf of the 12 hours that is 43200s, so they probably think of when the actual length of 43200 instead of the timeline, but you can see fill after the playback speed becomes 0, this is because the playback speed calculation too small and the system is judged to zero, and if we want to achieve the effect of real clock can be 1 to 1, you can increase the length of the original timeline when some , the actual duration of at least 0.5% (rounded).
Here Insert Picture Description

Guess you like

Origin blog.51cto.com/14556317/2484425