1
00:00:01,630 --> 00:00:07,710
Guys in this lecture you're going to focus on how to write or add expressions without using the whip

2
00:00:07,720 --> 00:00:10,160
now you're going to get serious about the expression.

3
00:00:10,180 --> 00:00:14,550
Start writing them and see how barometers can work in an expression.

4
00:00:15,710 --> 00:00:19,180
Now there's the movement here of the circle comes over here.

5
00:00:19,300 --> 00:00:19,790
OK.

6
00:00:19,820 --> 00:00:22,150
And then the animation stops completely.

7
00:00:22,160 --> 00:00:23,100
That's pretty cool.

8
00:00:23,270 --> 00:00:30,050
Nice animation but then what happens if I want this bowl to continue being animated till the end of

9
00:00:30,050 --> 00:00:36,350
the composition without having to you know replicate the keyframes and if the composition goes longer

10
00:00:36,350 --> 00:00:37,480
I have to give frames.

11
00:00:37,490 --> 00:00:42,190
I suppose that this I want to use a simple expression.

12
00:00:42,190 --> 00:00:47,940
The expression I'm going to show you now is very useful and widely used.

13
00:00:48,190 --> 00:00:49,720
Let's come to the beginning here.

14
00:00:49,890 --> 00:00:55,980
And you wanted to add an expression to the position so it can continue playing the keyframes over here

15
00:00:56,040 --> 00:01:03,160
at the end of the composition so of course I press Alt click on the stopwatch and then there is the

16
00:01:03,160 --> 00:01:04,190
small arrow here.

17
00:01:04,300 --> 00:01:11,560
If I click on it comes to property there are here nice expressions such as the we will see about that

18
00:01:12,180 --> 00:01:13,420
there is the loop out.

19
00:01:13,450 --> 00:01:17,430
This is what we are going to use now and we see about the others later on.

20
00:01:17,710 --> 00:01:19,030
Let's take the loop out.

21
00:01:20,520 --> 00:01:28,110
And you notice the loop has a type which is cycle and number of keyframes number keyframes is set to

22
00:01:28,110 --> 00:01:28,660
zero.

23
00:01:28,860 --> 00:01:32,310
Well these are really not the paramita is just the syntax.

24
00:01:32,310 --> 00:01:34,190
You can just come and delete them.

25
00:01:34,420 --> 00:01:43,620
OK so we need all of them except the panties is no not this how loop out is spelled the O is uppercase.

26
00:01:43,620 --> 00:01:47,240
Please don't write it in small case it will make a mistake.

27
00:01:47,280 --> 00:01:51,120
The expressions are case sensitive and language sensitive.

28
00:01:51,180 --> 00:01:51,960
By the way.

29
00:01:52,470 --> 00:02:02,480
So now if you play the loop out we'll start playing the first keyframe after the last keyframe not happening.

30
00:02:02,510 --> 00:02:07,490
This is the Laskey frame the keyframe that displayed after all the motion that is played that is the

31
00:02:07,490 --> 00:02:11,930
first keyframe you see how it jumped without having any keyframes on the timeline.

32
00:02:11,930 --> 00:02:13,400
Of course.

33
00:02:13,620 --> 00:02:19,860
So the loop out will loop your keyframes from the last keyframe starting from the first one till the

34
00:02:20,010 --> 00:02:21,450
end of the composition

35
00:02:24,280 --> 00:02:31,270
so having the last keyframe you play the first keyframe Let's go back to the small arrow here and go

36
00:02:31,270 --> 00:02:37,930
to property and you have loop out here was a cycle a number of keyframes Let's try cycle and a couple

37
00:02:37,930 --> 00:02:43,440
of them fact there are only two in the cycle here you can replace it for example with Bing Bang.

38
00:02:43,540 --> 00:02:47,870
I put that black dots right being punk.

39
00:02:48,100 --> 00:02:50,890
This is one image is that you can change like this.

40
00:02:50,890 --> 00:02:52,890
I would delete the number of keyframes.

41
00:02:52,960 --> 00:03:00,670
OK if you don't care about it for now and even I can delete that type because this is just syntax and

42
00:03:00,670 --> 00:03:06,790
if you click out here you are if you play now the ping pong effect is that it does not continue from

43
00:03:06,790 --> 00:03:10,740
the first keyframe it continues from the previous keyframe.

44
00:03:10,750 --> 00:03:18,370
Notice how the ball when it comes to the end just overhear the previous keyframe.

45
00:03:18,370 --> 00:03:19,490
Let me show you now.

46
00:03:19,630 --> 00:03:26,460
So you are at the last frame the next motion that is played is the previous keyframe from the last one.

47
00:03:26,490 --> 00:03:27,310
Here you are.

48
00:03:27,520 --> 00:03:27,860
OK.

49
00:03:27,870 --> 00:03:32,020
Then you have the 30 frame or the fourth one and it's playing again.

50
00:03:32,020 --> 00:03:36,700
So actually it is now binging comes today and it will be bonding.

51
00:03:36,880 --> 00:03:41,240
OK if you like to so now this is pretty practical.

52
00:03:41,260 --> 00:03:49,220
Notice how the stuff is still moving with the loop out there is also the number of keyframes you remember

53
00:03:49,280 --> 00:03:50,950
there was a number.

54
00:03:51,140 --> 00:03:58,060
If you put a comma and there is a number you could ID I would add for example to at this point the pong

55
00:03:58,300 --> 00:04:02,320
will only play the last two keyframes because it's a loop out.

56
00:04:02,380 --> 00:04:04,480
So it's really work on the last keyframes.

57
00:04:04,630 --> 00:04:11,330
If you play here after the Laskey frame it plays the previous one then go back to the last one.

58
00:04:11,540 --> 00:04:12,540
You got this.

59
00:04:12,550 --> 00:04:13,490
Ok cool.

60
00:04:13,490 --> 00:04:15,530
So you have a very nice animation here.

61
00:04:15,560 --> 00:04:18,640
Imagine the things you can do of a card a planet.

62
00:04:18,650 --> 00:04:24,770
I don't know what so much even the characters that we have animated with the pen tool you can use the

63
00:04:25,080 --> 00:04:25,960
bank too.

64
00:04:26,140 --> 00:04:29,570
Let's try for example ping pong for you now.

65
00:04:30,060 --> 00:04:30,710
OK.

66
00:04:30,770 --> 00:04:38,270
So it's going to be cooler even if you are cancer the end and then goes back one that's the PVC keyframe

67
00:04:38,270 --> 00:04:42,810
then the first keyframe from the beginning.

68
00:04:42,840 --> 00:04:48,160
So this is the job of loop out and it's pretty useful please start using it.

69
00:04:49,240 --> 00:04:57,850
The other one we going to work on is the loop in fact come to property you have the loop in cycle and

70
00:04:57,850 --> 00:04:59,710
number of key frames.

71
00:04:59,760 --> 00:05:01,210
Let's just put the loop in.

72
00:05:01,210 --> 00:05:07,390
If you play like this there's not going to do anything because the loop in is the inverse of the loop

73
00:05:07,450 --> 00:05:11,260
out the loop it now works the other way.

74
00:05:11,380 --> 00:05:17,650
Let's go to the end of the composition by placing and select all out frames and click and drag them

75
00:05:17,680 --> 00:05:19,680
and stop them to the time line at the end.

76
00:05:20,890 --> 00:05:25,740
So the loop in we're starting from the last keyframe and then go back to the first keyframe.

77
00:05:25,860 --> 00:05:31,460
You are not this how it started playing and we don't have any keyframes yet.

78
00:05:31,780 --> 00:05:33,320
OK that's pretty good.

79
00:05:33,580 --> 00:05:36,710
Nyunt then emission you get created with a number of keyframes.

80
00:05:36,880 --> 00:05:44,530
Let's say we add two and it's going to be pretty cool if you are not this how it's playing them according

81
00:05:44,530 --> 00:05:45,880
to Time of course.

82
00:05:45,880 --> 00:05:47,020
Start with the first one.

83
00:05:47,020 --> 00:05:49,850
Second one comes back to the beginning and so on.

84
00:05:49,870 --> 00:05:52,370
Of course you can add here the Bing Bang.

85
00:05:52,570 --> 00:05:56,420
So I would write the pot being Bond

86
00:06:00,740 --> 00:06:02,020
and close the quads.

87
00:06:02,060 --> 00:06:05,390
And don't forget the comma here and here you are.

88
00:06:05,390 --> 00:06:06,970
I think it's OK.

89
00:06:07,040 --> 00:06:12,650
So not this what's happening let's go back to the beginning and you play it so it goes front and back

90
00:06:12,680 --> 00:06:13,780
from the beginning.

91
00:06:13,940 --> 00:06:14,230
OK.

92
00:06:14,240 --> 00:06:18,330
From the first key frames here and then it will continue.

93
00:06:19,650 --> 00:06:21,950
The last frame and notice how it's playing.

94
00:06:21,960 --> 00:06:27,250
Only the Tuki flame's loop in is the inverse of the loop out.

95
00:06:27,300 --> 00:06:31,350
Now this is very easy to use but showing it you do.

96
00:06:31,350 --> 00:06:36,090
The first time you might say oh wow this is difficult actually is so easy.

97
00:06:36,090 --> 00:06:37,700
Now the way to work is like this.

98
00:06:37,770 --> 00:06:38,740
Let's move this one.

99
00:06:38,730 --> 00:06:39,630
We don't want it.

100
00:06:41,470 --> 00:06:45,200
Select all the keyframes and just map them to the beginning here.

101
00:06:45,290 --> 00:06:46,750
I will come over here.

102
00:06:46,950 --> 00:06:55,100
Press alt or option the mark and click on the stopwatch and that type loop out.

103
00:06:55,210 --> 00:06:55,960
And here you are.

104
00:06:56,140 --> 00:07:02,680
You have your expression looping out everything not always you want to come to the arrow and pick the

105
00:07:02,680 --> 00:07:06,040
expression you can just click here and type it.

106
00:07:06,070 --> 00:07:07,540
Thank you very much for listening.

107
00:07:07,540 --> 00:07:08,960
I hope this was useful.

108
00:07:09,060 --> 00:07:10,530
Maybe it was fun.

109
00:07:10,690 --> 00:07:11,970
And now it's up to you.

110
00:07:12,100 --> 00:07:14,420
Start using the loop out.

111
00:07:14,500 --> 00:07:15,050
Thank you.

112
00:07:15,130 --> 00:07:16,640
I'll see you in the next lecture.
