1
00:00:01,760 --> 00:00:09,530
Hi Guys welcome to linear interpolation with expressions or interpellation linear.

2
00:00:10,010 --> 00:00:16,130
It's very important that you learn these expressions and also you do a lot of practice because believe

3
00:00:16,130 --> 00:00:19,490
me you can do great animations using them.

4
00:00:19,520 --> 00:00:21,650
Happy Birthday small animation for you.

5
00:00:21,650 --> 00:00:23,500
I hope it looks neat.

6
00:00:23,540 --> 00:00:30,170
There is this little boy that is oscillating left and right using the loop of Simpang and to keyframes

7
00:00:30,260 --> 00:00:35,210
if you play the animation he goes to the right then to the left.

8
00:00:35,240 --> 00:00:41,420
If you look at the motion path you will notice that the motion path is a linear motion path but it is

9
00:00:41,630 --> 00:00:43,120
busy interpolated.

10
00:00:43,250 --> 00:00:49,430
So if you right click over here you come to different interpellation the special interoperation is continuous

11
00:00:49,430 --> 00:00:50,110
busy.

12
00:00:50,240 --> 00:00:55,470
And I adjusted the handle somehow you can make it even better the way you would like.

13
00:00:55,490 --> 00:01:03,320
So the ball actually is moving on in motion path was coordinated of X and Y and you can see the animation

14
00:01:03,320 --> 00:01:07,520
goes between 235 for the X and at the end here.

15
00:01:07,670 --> 00:01:14,790
I think it's 16 90 for the X what we'd like to do is this oscillator here.

16
00:01:14,930 --> 00:01:17,840
When the ball is on the side it's also rotate.

17
00:01:17,840 --> 00:01:20,480
Open the radio station just over here.

18
00:01:20,630 --> 00:01:21,160
OK.

19
00:01:21,260 --> 00:01:23,590
Something like 55 or 65.

20
00:01:23,900 --> 00:01:29,750
And then when the ball is on the other side here I want this guy here to rotate now.

21
00:01:29,930 --> 00:01:36,580
On the other side here you are two for example minus 65 preferments 65.

22
00:01:36,620 --> 00:01:43,760
How would you achieve this with the clip actually if you tried to keep the rotation to the position

23
00:01:43,790 --> 00:01:50,150
X you're going to have a very funny value because it's only growing in value and is really not what

24
00:01:50,150 --> 00:01:53,850
you want to achieve just rotating on its anchor point.

25
00:01:53,870 --> 00:01:55,460
So that's not the solution.

26
00:01:55,640 --> 00:02:02,440
The solution here is to use a special expression it's called linear expression under the interpellation

27
00:02:02,450 --> 00:02:05,540
group on the small arrow here.

28
00:02:05,560 --> 00:02:13,040
Go to interpellation and you have here several linnæus and ease and you have a linear one with minimum

29
00:02:13,040 --> 00:02:18,530
and maximum of two values and you have the ease with minimum maximum and the values.

30
00:02:18,670 --> 00:02:22,640
These are the ones that you are going to use here.

31
00:02:22,670 --> 00:02:25,700
I would select in any year say exactly how it works.

32
00:02:25,940 --> 00:02:27,840
Well it's very easy by the way.

33
00:02:28,280 --> 00:02:36,190
D is what you want to evaluate and you want to see when the richest D.M. give it value 1 and when D

34
00:02:36,410 --> 00:02:44,020
which is the maximum give his value to as simple as this the minimum for value 1 the maximum for value

35
00:02:44,020 --> 00:02:44,650
2.

36
00:02:44,860 --> 00:02:54,280
In between the minimum and maximum interpolate a value between value 1 and value 2 or into Prete a value.

37
00:02:54,490 --> 00:03:01,310
So it will find a good value through a linear algorithm and return it to they call.

38
00:03:01,390 --> 00:03:02,020
Let's do it.

39
00:03:02,020 --> 00:03:05,550
You know it's easier to do it than to discuss it.

40
00:03:07,090 --> 00:03:13,630
So what I'm going to evaluate here is the position X. So I'll take the pick up and bring in the position

41
00:03:13,650 --> 00:03:14,420
X here.

42
00:03:14,800 --> 00:03:16,980
So the minimum here is 235.

43
00:03:17,140 --> 00:03:19,670
That is the start of the animation on the left side.

44
00:03:19,690 --> 00:03:24,850
So right here to 35 and come on space.

45
00:03:25,150 --> 00:03:27,220
The maximum is when it's over here.

46
00:03:27,220 --> 00:03:29,400
Don't worry about the error will correct.

47
00:03:29,710 --> 00:03:30,940
The maximum is over here.

48
00:03:30,940 --> 00:03:32,260
It's 16:19.

49
00:03:32,440 --> 00:03:37,380
So the maximum and say 16 90.

50
00:03:37,540 --> 00:03:43,990
So now I found out the minimum value and the maximum value for what I'm evaluating which is different

51
00:03:43,990 --> 00:03:48,560
for positions you solve for the value of 235.

52
00:03:48,570 --> 00:03:51,930
What value will I want to return to the rotation.

53
00:03:51,930 --> 00:03:52,790
We have looked at it.

54
00:03:52,800 --> 00:03:55,570
We said 65 degrees right guys.

55
00:03:56,960 --> 00:04:00,920
40 maximum or 60 90 over here what is the value.

56
00:04:00,920 --> 00:04:05,660
I want to return to the rotation and we looked at it we said minus 65.

57
00:04:05,660 --> 00:04:06,450
I hope so.

58
00:04:06,800 --> 00:04:07,770
It's not the other way.

59
00:04:07,900 --> 00:04:08,370
OK.

60
00:04:09,320 --> 00:04:12,410
Minus 65 and we did the rest.

61
00:04:12,680 --> 00:04:23,630
So now for 235 returned 65 for 60 90 return 165 in between 235 and 60 90 return or into it evaluate

62
00:04:23,630 --> 00:04:28,170
between 65 and minus 65 this click out.

63
00:04:28,170 --> 00:04:28,550
Wow.

64
00:04:28,580 --> 00:04:30,010
I did a good job guys.

65
00:04:30,020 --> 00:04:31,160
That's what's happening.

66
00:04:31,300 --> 00:04:33,980
We are getting them together.

67
00:04:33,980 --> 00:04:40,460
It is so easy to use the Linnea actually what you have done interpolated the value of the position into

68
00:04:40,490 --> 00:04:46,790
a value of the rotation and it's so cool guys if you come in between here and you change your position.

69
00:04:46,970 --> 00:04:48,150
OK just like this.

70
00:04:48,210 --> 00:04:49,250
That's what's happening.

71
00:04:49,340 --> 00:04:50,500
So good guys.

72
00:04:50,550 --> 00:04:57,250
OK let's create another keyframe over here and let's move the position down and move the X that's our

73
00:04:57,290 --> 00:04:59,210
interest not what's happening.

74
00:04:59,210 --> 00:05:06,560
And if Intel played the game at the only trick there is to not exceed the maximum and do not exceed

75
00:05:06,680 --> 00:05:13,870
the minimum of the position and actually have a very nice animation here with the timing select all

76
00:05:13,870 --> 00:05:18,190
the key frames right click and go see a roll across time.

77
00:05:18,190 --> 00:05:19,700
So we have the same timing.

78
00:05:19,950 --> 00:05:20,340
OK.

79
00:05:20,350 --> 00:05:23,560
Here you are not this how this one is just following.

80
00:05:23,620 --> 00:05:29,460
Just use your imagination guys you have a spaceship following another spaceship you have a guy you know

81
00:05:29,500 --> 00:05:35,210
pointing a gun for example or I know a periscope coming out and trying to find the submarine.

82
00:05:35,320 --> 00:05:42,480
You can use this linear interpolation to create such animations at 100 percent.

83
00:05:42,490 --> 00:05:44,170
Thank you very much for listening.

84
00:05:44,170 --> 00:05:49,940
It's time for you now to go to after effects and stop playing with the linen interpellation and interpolate

85
00:05:50,130 --> 00:05:53,150
the next value into rotation.

86
00:05:53,170 --> 00:05:56,560
I will see you in the next lecture was more about interpellation.
