1
00:00:01,210 --> 00:00:07,630
Hi guys in this lecture we are going to do the inverse of the previous lecture in the previous lecture.

2
00:00:07,630 --> 00:00:11,310
We controlled the rotation through position.

3
00:00:11,320 --> 00:00:13,790
It was easy by the way in this lecture.

4
00:00:13,930 --> 00:00:18,530
We wanted to control the position through the rotation.

5
00:00:18,610 --> 00:00:26,260
If you come to the demo over here and I play it you will notice that the needle is just wiggling every

6
00:00:26,260 --> 00:00:28,700
one second by 150 plus or minus.

7
00:00:28,840 --> 00:00:34,060
So now it's going negative and positive and the ball is following the needle.

8
00:00:34,060 --> 00:00:36,730
Obviously since this is already fixed.

9
00:00:36,730 --> 00:00:40,660
So how are we going to control the position of the ball through the rotation.

10
00:00:40,660 --> 00:00:42,790
Of course using expressions.

11
00:00:43,360 --> 00:00:47,950
Let's go to speed here which is a composition that does not have any animation at all.

12
00:00:49,310 --> 00:00:52,570
Let's look at the needle and let's give it the wiggle.

13
00:00:52,580 --> 00:00:59,190
So I would open a rotation press alt or option click on the stopwatch and I have the expression out

14
00:00:59,310 --> 00:00:59,900
right.

15
00:00:59,930 --> 00:01:02,570
We kill every one second.

16
00:01:02,570 --> 00:01:05,800
One hundred fifty plus or minus that will be cool I think.

17
00:01:05,800 --> 00:01:07,690
So let's try it.

18
00:01:08,030 --> 00:01:09,020
Well it's working.

19
00:01:09,080 --> 00:01:13,550
It's almost going to the maximum over here and to the minimum three.

20
00:01:13,940 --> 00:01:18,920
Let's go to market now and decide exactly the values of the market the open position.

21
00:01:18,920 --> 00:01:22,470
If you remember we need the minimum value and the maximum value.

22
00:01:22,610 --> 00:01:26,400
I would stop the animation Let's bring the timeline over here we can see.

23
00:01:26,400 --> 00:01:34,790
So the minimum value here is let's take it to the border here is almost 200 Let's take 200 for just

24
00:01:34,790 --> 00:01:42,150
simplicity and the maximum value is going to be around 1035 1000 will be OK.

25
00:01:42,350 --> 00:01:49,480
So we have $201 could start the expression we press alt or option and click on the stopwatch restudy

26
00:01:49,560 --> 00:01:50,480
expression.

27
00:01:50,660 --> 00:01:57,740
Of course now I'm going to use interpellation and I'm going to take linear the long while if you like

28
00:01:58,130 --> 00:01:59,750
and then I'll click on it.

29
00:02:00,540 --> 00:02:02,680
Let's start adjusting the parameters.

30
00:02:02,700 --> 00:02:04,100
What is the G.

31
00:02:04,110 --> 00:02:05,940
Is the rotation.

32
00:02:05,940 --> 00:02:07,710
This is the values that you are studying.

33
00:02:07,860 --> 00:02:13,620
So I can write here the whole expression I'll just use the pick me up click and take it to rotation.

34
00:02:13,620 --> 00:02:15,720
So now we have the rotation here.

35
00:02:15,750 --> 00:02:18,470
What is the minimum rotation.

36
00:02:18,510 --> 00:02:24,600
We know very well that the wiggle is 150 so it could be minus 150.

37
00:02:24,600 --> 00:02:31,890
Now if this is too much or too little I just added the maximum value here will be plus 150 are like

38
00:02:31,890 --> 00:02:33,000
150.

39
00:02:33,000 --> 00:02:37,830
And what are the values I want for the exposition here for minus 150.

40
00:02:37,830 --> 00:02:40,210
We agree on having 200.

41
00:02:40,230 --> 00:02:46,500
So I write to 100 and for the maximum 150 out of 1000.

42
00:02:46,530 --> 00:02:47,620
Very easy.

43
00:02:47,890 --> 00:02:54,200
Ok now this is not or not is that I want to control only the x.

44
00:02:54,220 --> 00:02:57,590
I don't want to touch the Y and I wanted to go up and down fine.

45
00:02:57,640 --> 00:03:05,920
So let's say this expression will give me the x value so I'll write X and I will write the semicolon

46
00:03:05,920 --> 00:03:07,200
here I'll type it.

47
00:03:07,190 --> 00:03:14,440
Press Enter now I need to return to values for the position like the rotation rate and one value.

48
00:03:14,500 --> 00:03:16,710
Here we want to return to values.

49
00:03:16,780 --> 00:03:18,720
So the first value is x.

50
00:03:18,730 --> 00:03:21,450
So you open the bracket and you write x.

51
00:03:21,580 --> 00:03:23,920
The second value doesn't change.

52
00:03:23,920 --> 00:03:25,030
This is the Y.

53
00:03:25,270 --> 00:03:28,540
So I can write an expression and you know do a lot of things.

54
00:03:28,540 --> 00:03:32,210
The easiest thing is to take the pick me up and drop it on the Y.

55
00:03:32,230 --> 00:03:32,890
Here you are.

56
00:03:33,040 --> 00:03:35,150
So it says transform position 1.

57
00:03:35,350 --> 00:03:43,150
So actually whatever the position one is now it's going to be over here and X will come from the linear

58
00:03:43,180 --> 00:03:44,240
expression here.

59
00:03:44,530 --> 00:03:45,250
Did it work.

60
00:03:45,250 --> 00:03:46,190
Am I good enough.

61
00:03:46,300 --> 00:03:46,950
Let's see.

62
00:03:46,960 --> 00:03:49,040
Click out no mistake.

63
00:03:49,270 --> 00:03:50,410
OK that's pretty good.

64
00:03:50,410 --> 00:03:51,780
No error message.

65
00:03:51,790 --> 00:03:52,690
I will play.

66
00:03:52,780 --> 00:03:53,440
Here you are.

67
00:03:53,510 --> 00:03:56,080
It's working at 100 percent.

68
00:03:56,080 --> 00:04:03,350
So actually it's pretty easy to work with the expressions provided that you go step by step and do that

69
00:04:03,350 --> 00:04:04,060
I think.

70
00:04:04,180 --> 00:04:12,400
Cool guys now the student that went in 3D and he had a lot of complication because it was the three

71
00:04:12,400 --> 00:04:13,070
values.

72
00:04:13,090 --> 00:04:15,580
Let's go to 3-D and see exactly how it works.

73
00:04:15,610 --> 00:04:19,670
And of course we can put the needle into 3D can put everything in 3-D.

74
00:04:19,840 --> 00:04:24,940
But I will focus now not even in 3-D The animation is still working.

75
00:04:24,940 --> 00:04:32,500
I did not even return the zero value but to make it consistent I can come to the position here and write

76
00:04:32,560 --> 00:04:37,490
karma bequeaths and use the pick me up to take the Zed's value.

77
00:04:37,490 --> 00:04:41,560
Here you are I click outside and I think it's working is it.

78
00:04:41,720 --> 00:04:42,440
Yes.

79
00:04:42,440 --> 00:04:44,750
So we are already an active camera.

80
00:04:44,780 --> 00:04:45,990
That's how it works.

81
00:04:45,990 --> 00:04:47,420
Notice what's happening here.

82
00:04:47,470 --> 00:04:49,460
I am using only the z rotation.

83
00:04:49,460 --> 00:04:54,720
If I were using the x and y rotation of course it would be much more complicated.

84
00:04:54,890 --> 00:05:02,900
Now as you know before jumping to 3D please Master 2D and then jump to 3D because here you have three

85
00:05:02,900 --> 00:05:10,040
values longer expressions more complicated rotations and even the position here will be at the three

86
00:05:10,040 --> 00:05:11,250
if you perceive B.

87
00:05:11,540 --> 00:05:12,770
You have three of them.

88
00:05:12,920 --> 00:05:18,150
So maybe you want to go step by step master to D and then move on to 3-D.

89
00:05:18,410 --> 00:05:20,090
Thank you very much for listening.

90
00:05:20,090 --> 00:05:24,260
I will see you in the next lecture and I hope you do lots of speedometers.

