Guys in this lecture you're going to learn how to use expressions on the source text and it's very useful
later on.
What are you doing bars and graphs and maybe kilometers what you like.
It's extremely useful to learn this method.
Let's add some text.
I would take the text to write one two three.
There is no meaning of writing good text here because we are going to use the expression to have the
value for the source text.
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
text less and delete expression here that is linking the suspects to the exposition of this I will come
to the source the next press or option on the Mac.
Click to get the option for the expressions.
Now I know there's an error message has appeared.
Don't worry about it.
It will always appeal and you have your text that source text.
Now I use the pic to link it to the X of the circle.
This is the X of the circle.
I click and release click out and you have it a very big figure.
It actually is a very light figure too.
I don't know so many millimeters or decimals or whatever it is you need to round this figure and around
it is very easy.
Here I will show you how to use the javascript math and it's very easy.
Don't be scared from the word.
I'll come to the beginning here just at the beginning of the expression.
Click on the small arrow and go to javascript math.
There are so many very nice one because I love math and you have the science square root.
Exponential and so on.
The one that you are interested in is math that ground and you notice in brackets it will require a
value so click and choose.
Of course now it's a whole mess because I put the expression of math just in the beginning.
The value here that I need is obviously the value that I pick whipped from position zero.
So I will just delete here including the brackets the value and give it some space so you can see it
nicely.
Come to the end and close back the.
But it is OK.
Here you are now.
Not this it has rounded.
So math those that aren't well rounded and remove all the decimals.
So now let's position it over.
Here are key empty you know that the value is going with the ex-buddy.
This is very important because it's very much used when you're doing graphs and charts you know a pie
chart increasing which we're going to do an example and also a bar graph you want to show the values
moving are increasing.
You will use this strategy.
This is cool but not that good.
Let's make it better.
I would like the text to go or essentially with the circle.
The circle is going up and down.
That's very true.
But I wanted the text or the circle comes over here.
The text also moves from here to here.
So I'm going to do that i need of course to link the exposition of the text or position zero of the
text to position zero of the circle.
That's right.
Let's go back here.
Select the text and go to the transform and on the position here you can use this all of the stopwatch
on the package will be option's stopwatch and Requip.
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
allowing the position which has to be committed here X and Y.
I linked it to only X and now over here in the expression it needs to return two values one for the
X and one for the Y.
But I only link to one value.
So it created a variable called temp and it does put in this variable the link itself.
OK that's position zero.
And then sennetti.
This is an array of two values.
It has send the L.A. back to the position x and y.
Of course that identical.
Now if you move you know is going juggernaut because the two values are identical.
I need to fix that the way to fix that is to remove the y.
Ok I deleted it but I cannot send no value.
I have to send a certain value the best value to is its own value and this will mean to keep the value
inside the expression to the position.
One of the text itself.
Here you are.
You got this.
OK.
So we have now 10 coming from position zero from the circle and the next value which is for the Y is
coming from transform position one of the text itself.
I click out if you play now here you are not this how it jumped a jump because this is where I positioned
it.
OK I can reposition it up and down but not left and right or left or right will not walk up and down
will walk so I'll pull over here and now you have a very nice animation where the text is moving horizontally
or on the x axis exactly was the circle itself.
You can use this method to link one property to another property when the property requires two values
and you just bequeath.
I hope this gives you a lot of insight and you can start working even better with the expressions.
Thank you for listening.
I will see you on the next lecture.