1
00:00:01,550 --> 00:00:09,050
Guys in this lecture you're going to learn how to use expressions on the source text and it's very useful

2
00:00:09,110 --> 00:00:09,930
later on.

3
00:00:09,950 --> 00:00:14,130
What are you doing bars and graphs and maybe kilometers what you like.

4
00:00:14,180 --> 00:00:16,510
It's extremely useful to learn this method.

5
00:00:16,880 --> 00:00:18,070
Let's add some text.

6
00:00:18,110 --> 00:00:21,750
I would take the text to write one two three.

7
00:00:21,770 --> 00:00:26,090
There is no meaning of writing good text here because we are going to use the expression to have the

8
00:00:26,090 --> 00:00:28,290
value for the source text.

9
00:00:28,500 --> 00:00:34,140
If you can't text now or click on it and put it on top and it down and go to the text we have the source

10
00:00:34,170 --> 00:00:42,310
text less and delete expression here that is linking the suspects to the exposition of this I will come

11
00:00:42,310 --> 00:00:45,700
to the source the next press or option on the Mac.

12
00:00:45,700 --> 00:00:48,320
Click to get the option for the expressions.

13
00:00:48,360 --> 00:00:50,620
Now I know there's an error message has appeared.

14
00:00:50,620 --> 00:00:51,710
Don't worry about it.

15
00:00:51,790 --> 00:00:57,630
It will always appeal and you have your text that source text.

16
00:00:57,640 --> 00:01:01,460
Now I use the pic to link it to the X of the circle.

17
00:01:01,600 --> 00:01:03,190
This is the X of the circle.

18
00:01:03,210 --> 00:01:08,710
I click and release click out and you have it a very big figure.

19
00:01:08,710 --> 00:01:11,470
It actually is a very light figure too.

20
00:01:11,470 --> 00:01:18,280
I don't know so many millimeters or decimals or whatever it is you need to round this figure and around

21
00:01:18,370 --> 00:01:19,510
it is very easy.

22
00:01:19,570 --> 00:01:24,090
Here I will show you how to use the javascript math and it's very easy.

23
00:01:24,090 --> 00:01:26,090
Don't be scared from the word.

24
00:01:26,360 --> 00:01:30,960
I'll come to the beginning here just at the beginning of the expression.

25
00:01:31,030 --> 00:01:35,180
Click on the small arrow and go to javascript math.

26
00:01:35,230 --> 00:01:41,680
There are so many very nice one because I love math and you have the science square root.

27
00:01:41,710 --> 00:01:43,900
Exponential and so on.

28
00:01:43,960 --> 00:01:49,690
The one that you are interested in is math that ground and you notice in brackets it will require a

29
00:01:49,690 --> 00:01:52,180
value so click and choose.

30
00:01:52,300 --> 00:01:57,750
Of course now it's a whole mess because I put the expression of math just in the beginning.

31
00:01:57,820 --> 00:02:04,060
The value here that I need is obviously the value that I pick whipped from position zero.

32
00:02:04,420 --> 00:02:11,650
So I will just delete here including the brackets the value and give it some space so you can see it

33
00:02:11,650 --> 00:02:12,540
nicely.

34
00:02:12,610 --> 00:02:15,490
Come to the end and close back the.

35
00:02:15,890 --> 00:02:16,970
But it is OK.

36
00:02:17,050 --> 00:02:18,800
Here you are now.

37
00:02:18,850 --> 00:02:20,320
Not this it has rounded.

38
00:02:20,630 --> 00:02:24,550
So math those that aren't well rounded and remove all the decimals.

39
00:02:24,910 --> 00:02:26,200
So now let's position it over.

40
00:02:26,200 --> 00:02:32,880
Here are key empty you know that the value is going with the ex-buddy.

41
00:02:33,120 --> 00:02:38,700
This is very important because it's very much used when you're doing graphs and charts you know a pie

42
00:02:38,700 --> 00:02:44,370
chart increasing which we're going to do an example and also a bar graph you want to show the values

43
00:02:44,370 --> 00:02:45,810
moving are increasing.

44
00:02:45,810 --> 00:02:48,090
You will use this strategy.

45
00:02:48,310 --> 00:02:50,660
This is cool but not that good.

46
00:02:50,670 --> 00:02:52,080
Let's make it better.

47
00:02:52,620 --> 00:02:56,660
I would like the text to go or essentially with the circle.

48
00:02:56,970 --> 00:02:58,530
The circle is going up and down.

49
00:02:58,530 --> 00:02:59,370
That's very true.

50
00:02:59,460 --> 00:03:02,700
But I wanted the text or the circle comes over here.

51
00:03:02,700 --> 00:03:05,550
The text also moves from here to here.

52
00:03:05,730 --> 00:03:13,420
So I'm going to do that i need of course to link the exposition of the text or position zero of the

53
00:03:13,420 --> 00:03:17,190
text to position zero of the circle.

54
00:03:17,410 --> 00:03:18,170
That's right.

55
00:03:18,190 --> 00:03:19,230
Let's go back here.

56
00:03:19,510 --> 00:03:28,360
Select the text and go to the transform and on the position here you can use this all of the stopwatch

57
00:03:28,420 --> 00:03:31,860
on the package will be option's stopwatch and Requip.

58
00:03:31,900 --> 00:03:39,750
Now not this I'm going to pick me up very nicely to the position I'm going to use X that is rather than

59
00:03:39,970 --> 00:03:44,470
allowing the position which has to be committed here X and Y.

60
00:03:44,630 --> 00:03:53,130
I linked it to only X and now over here in the expression it needs to return two values one for the

61
00:03:53,140 --> 00:03:54,680
X and one for the Y.

62
00:03:54,910 --> 00:03:57,070
But I only link to one value.

63
00:03:57,070 --> 00:04:05,390
So it created a variable called temp and it does put in this variable the link itself.

64
00:04:05,590 --> 00:04:07,170
OK that's position zero.

65
00:04:07,360 --> 00:04:08,900
And then sennetti.

66
00:04:08,920 --> 00:04:11,600
This is an array of two values.

67
00:04:11,650 --> 00:04:15,390
It has send the L.A. back to the position x and y.

68
00:04:15,520 --> 00:04:17,310
Of course that identical.

69
00:04:17,330 --> 00:04:22,800
Now if you move you know is going juggernaut because the two values are identical.

70
00:04:23,030 --> 00:04:27,370
I need to fix that the way to fix that is to remove the y.

71
00:04:27,580 --> 00:04:31,060
Ok I deleted it but I cannot send no value.

72
00:04:31,060 --> 00:04:39,790
I have to send a certain value the best value to is its own value and this will mean to keep the value

73
00:04:39,820 --> 00:04:42,900
inside the expression to the position.

74
00:04:42,940 --> 00:04:45,750
One of the text itself.

75
00:04:45,850 --> 00:04:46,590
Here you are.

76
00:04:46,830 --> 00:04:47,670
You got this.

77
00:04:47,840 --> 00:04:48,340
OK.

78
00:04:48,460 --> 00:04:55,930
So we have now 10 coming from position zero from the circle and the next value which is for the Y is

79
00:04:55,990 --> 00:04:59,800
coming from transform position one of the text itself.

80
00:04:59,910 --> 00:05:06,930
I click out if you play now here you are not this how it jumped a jump because this is where I positioned

81
00:05:06,940 --> 00:05:07,300
it.

82
00:05:07,420 --> 00:05:13,600
OK I can reposition it up and down but not left and right or left or right will not walk up and down

83
00:05:13,600 --> 00:05:20,140
will walk so I'll pull over here and now you have a very nice animation where the text is moving horizontally

84
00:05:20,200 --> 00:05:25,440
or on the x axis exactly was the circle itself.

85
00:05:25,540 --> 00:05:33,500
You can use this method to link one property to another property when the property requires two values

86
00:05:33,820 --> 00:05:35,550
and you just bequeath.

87
00:05:35,800 --> 00:05:42,170
I hope this gives you a lot of insight and you can start working even better with the expressions.

88
00:05:42,400 --> 00:05:43,310
Thank you for listening.

89
00:05:43,360 --> 00:05:44,920
I will see you on the next lecture.
