1
00:00:01,400 --> 00:00:08,510
Guys in this lecture I will introduce you to the expression the regular expression will turn somehow

2
00:00:08,810 --> 00:00:09,880
random values.

3
00:00:09,920 --> 00:00:15,710
And it's very much you used to wiggle something to make it move left and right up and down whatever.

4
00:00:15,880 --> 00:00:20,090
And they kind of randomly We stayed in the project.

5
00:00:20,110 --> 00:00:22,870
Expressions that started that a b.

6
00:00:22,990 --> 00:00:24,330
Please open the file.

7
00:00:24,670 --> 00:00:31,300
And then within this project go to the composition interpellation rotation Tylene year and it's over

8
00:00:31,300 --> 00:00:31,630
here.

9
00:00:32,540 --> 00:00:35,060
Now we have a kind of a speedometer here.

10
00:00:35,060 --> 00:00:39,150
And our aim is to wiggle this needle if you like.

11
00:00:39,260 --> 00:00:41,940
We wanted to go left and right in a random way.

12
00:00:42,760 --> 00:00:50,560
And the best way to do that is to use the expression that's open the rotation now at and click on the

13
00:00:50,560 --> 00:00:55,560
stopwatch go to the arrow over here and go to property.

14
00:00:55,650 --> 00:00:59,610
You'll find that you have wiggle and you have temporal wiggle.

15
00:00:59,770 --> 00:01:08,140
So it has five parameters here the frequency the amplitude the octaves the amplitude multiplier and

16
00:01:08,170 --> 00:01:14,000
the time we are all interested and we are going to work with the first two the frequency and the amplitude.

17
00:01:14,200 --> 00:01:17,500
So click and selected and delete everything.

18
00:01:18,690 --> 00:01:22,010
The frequency is the number of times per second.

19
00:01:22,170 --> 00:01:26,210
You want a value to be returned to the rotation.

20
00:01:26,220 --> 00:01:29,030
So for example let's say two values.

21
00:01:29,100 --> 00:01:33,740
What is the amplitude the amplitude is like how much you want to wiggle.

22
00:01:33,960 --> 00:01:38,970
Let's say if you give it 100 it will wiggle 100.

23
00:01:38,970 --> 00:01:41,080
So some confusion about the concept here.

24
00:01:41,280 --> 00:01:44,910
The 100 is not minus 100 plus 100 actually.

25
00:01:45,060 --> 00:01:52,980
This is amplitude is going to wiggle 100 Binik is going to be going from zero to 50 and from zero to

26
00:01:52,980 --> 00:01:55,970
minus 50 and you have 50 down 50 up.

27
00:01:56,070 --> 00:01:57,540
The total is 100.

28
00:01:57,540 --> 00:01:59,470
I will show you how it works.

29
00:01:59,550 --> 00:02:01,050
Let's play the animation.

30
00:02:01,050 --> 00:02:08,130
Notice how it's wiggling it's not going to minus 100 and it's not going to plus 100 is just getting

31
00:02:08,190 --> 00:02:09,890
values in between.

32
00:02:09,990 --> 00:02:11,180
Now this is very nice.

33
00:02:11,190 --> 00:02:13,940
It's wriggling but it's not exactly what you want.

34
00:02:13,950 --> 00:02:20,090
How do you discover or find out what are the values that we get is returning to that question.

35
00:02:20,100 --> 00:02:21,360
Well it's very easy.

36
00:02:21,540 --> 00:02:26,460
I would like you now to go to your graph editor and in the graphic designer you most probably don't

37
00:02:26,460 --> 00:02:27,950
see anything.

38
00:02:28,060 --> 00:02:35,340
Select the rotation and you're not saying you have the wiggle expression see the values and the graph

39
00:02:35,400 --> 00:02:41,660
of the expression you come to the small I can hear short post expression graph.

40
00:02:41,820 --> 00:02:47,720
So it will show you the graph after the expression if you click on it are highlighted.

41
00:02:47,730 --> 00:02:52,450
Now you can see the values provided that you are in the value graph.

42
00:02:52,560 --> 00:02:58,080
If you go to a speed graph it's going to show you another kind of graph which will then notice of course

43
00:02:58,170 --> 00:02:59,250
the speed.

44
00:02:59,250 --> 00:03:01,230
So let's go to the value graph.

45
00:03:01,410 --> 00:03:05,560
And these are the values that has been returned by the get.

46
00:03:06,020 --> 00:03:10,200
Well guys you see these values have been returned and that's it.

47
00:03:10,230 --> 00:03:12,230
They are never going to change.

48
00:03:12,360 --> 00:03:16,190
It's not a random value every time prices respond.

49
00:03:16,200 --> 00:03:17,600
These values will change.

50
00:03:17,700 --> 00:03:18,160
No.

51
00:03:18,330 --> 00:03:22,250
These values are set as soon as you put the wiggle expression.

52
00:03:22,470 --> 00:03:26,190
If you play now you will notice how it's working actually.

53
00:03:26,260 --> 00:03:28,230
Let's come over here.

54
00:03:29,300 --> 00:03:31,480
And if you remember we put to one.

55
00:03:31,540 --> 00:03:32,690
Is the amplitude.

56
00:03:32,850 --> 00:03:36,980
So it is minus 50 and it is plus 50 over here.

57
00:03:37,020 --> 00:03:39,090
I don't know if you can see it.

58
00:03:39,310 --> 00:03:44,320
The amplitude goes from minus 50 to 50 which makes it 100.

59
00:03:44,350 --> 00:03:46,440
Of course if you take the absolute value.

60
00:03:46,630 --> 00:03:49,960
So the space that is wiggling in between is 100.

61
00:03:49,960 --> 00:03:54,870
It is not from zero to minus 100 and from zero to plus 100.

62
00:03:54,910 --> 00:04:01,330
So now the minimum amplitude here the negative one is around minus six.

63
00:04:01,390 --> 00:04:06,180
So over here it even went beyond the minus 50 or the 100.

64
00:04:06,640 --> 00:04:10,840
And the maximum amplitude is just over here I can see it on the graph.

65
00:04:10,840 --> 00:04:12,230
It is 45.

66
00:04:12,490 --> 00:04:16,170
So actually there's always going to wiggle from minus 50 to 50.

67
00:04:16,210 --> 00:04:21,560
In concept we have a small value here on top and that's it.

68
00:04:21,640 --> 00:04:24,340
Logically you would say that we get 90.

69
00:04:24,340 --> 00:04:26,910
So it goes minus 90 plus 90.

70
00:04:27,010 --> 00:04:28,280
It doesn't work like this.

71
00:04:28,360 --> 00:04:34,340
If you want minus 90 to 90 then you have to wiggle one hundred eighty.

72
00:04:34,390 --> 00:04:36,680
And yet this one even when not what.

73
00:04:36,850 --> 00:04:40,640
Let's look at it at one hundred eighty and not as it went out already.

74
00:04:40,730 --> 00:04:46,470
We've got the graph and your lowest point here is minus 101.

75
00:04:46,600 --> 00:04:48,760
Much more then the half.

76
00:04:48,790 --> 00:04:49,900
It does happen.

77
00:04:49,930 --> 00:04:53,310
This is the object of the vehicle to give you some kind of roundups.

78
00:04:53,470 --> 00:04:58,530
In our case here it would be very good if you put for example 150.

79
00:04:58,850 --> 00:05:02,130
OK go to the graph here.

80
00:05:02,260 --> 00:05:03,810
This is the maximum.

81
00:05:03,910 --> 00:05:04,720
I'm cool with it.

82
00:05:04,720 --> 00:05:05,710
Look at the needle.

83
00:05:05,920 --> 00:05:08,830
And then I go up here Matt.

84
00:05:08,890 --> 00:05:09,880
Cool fine.

85
00:05:09,960 --> 00:05:12,040
So this really is pretty cool.

86
00:05:12,060 --> 00:05:13,660
I'm happy from the values.

87
00:05:13,740 --> 00:05:19,650
Let's go back to the Spirograph and you have a different kind of graph with the speed and not see how

88
00:05:19,650 --> 00:05:22,510
jumping up very fast then go back slow.

89
00:05:22,680 --> 00:05:23,810
And so on.

90
00:05:23,820 --> 00:05:31,970
So this is the wiggle demystified and it give us a chance to work with the post expression.

91
00:05:32,220 --> 00:05:39,150
Now what we're likely to do here is to go back and write this expression in the rotation because in

92
00:05:39,150 --> 00:05:43,870
the next texture we are going to interpolate with the small not all that.

93
00:05:44,130 --> 00:05:45,200
Thank you for listening.

94
00:05:45,300 --> 00:05:46,740
We'll see you in the next election.
