Guys and welcome to expression's what you want to do in this lecture is just understand the referencing
system that is written in expressions.
It's pretty easy.
But your understanding of this concept will help you a lot in creating better expressions and will enable
you to correct many mistakes that might happen with you.
So with that text I call that original text and the text inside is original text.
I will create a simple rectangle by now I would like to use in the content of the text.
There is of course source text.
Let's start using the expression in source text press after alternate and click.
Now I will use always that I'm not going to write anything.
So if I take the pick leap here and pointed at this certain composition here for example you notice
it has written Camp 3.
So it is referencing to this group.
If I click out the text will change to become object comp actually referencing to a comp is actually
referencing to an object.
And this is a composition object and that's pretty cool.
Now if I change this and I go to for example the shape player so I'm going to pick up the shape player
only and I click you notice here you have object layer.
So what is the expression on this camp.
That's a reference to this composition.
It's an object comp layer.
It's a reference to layer shape one.
And this will have a shape point.
And now we have object layer.
That's pretty cool.
Now you have two objects and you know how to reference.
And what happens if I change from Layer 2 to 3 for example says layer 3 does not exist.
It gives the error.
So this is mainly what will happen here.
You have certain references that you typed in let's use the clip and then you change the name and things
will go wrong with you.
So not as the reference is very important.
Let's do that again and take shape player 1.
Now if I come to a shape player 1 and she that to rectangle and changing the name of the letter then
the dash 1.
Now you notice the reference here has changed so this camp is a object composition.
And this one layer is a object layer.
Let's add something else.
Let's go ahead and add two content.
I want to take from the content so let's roll down the content here.
So now this we have content we have a rectangle 1 rectangle Part 1 size position and roundness.
I will come to the clip and go up and try to reference for example on the size now and is here the differences
become very long.
We are referencing to this composition.
That's an object camp layer object layer.
And then you have content rectangle what that is that the hierarchy here content's rectangle one rectangle
path one and size and the same is happening here constant rectangle one rectangle path one and size.
And this is pretty amazing because now you know that the last one is not a reference.
The last one is the value size and the first parameter of size.
That's pretty interesting.
Now you know how to get your references right.
If it's come here and you start playing with it you'll get a better notion about how this works.
If I try for example to a reference to the same text and go to path you have text that path option that
path click out and get narrower because path has no content that can be displayed for example is just
a path.
Now if I change I go to more options and I try to grouping alignment not just now there is grouping
along the zero so it's going to take the first one and here is this text dot more options.
So we are in text.
We are in more options grouping alignment.
That's the property and it's taking the first value here the zero value.
And if you play with it even more you can find out that how transform are.
And this is pretty nice.
Let's go to circle and we have here we worked with size.
Let's go to transform for the laya.
If you pick me up on the position this camp later transform not is the hierarchy here.
Layer contents of course transform is not on the content so it's layer transform and position.
And here you are.
So this is for your understanding this will enable you to write if you want to type them the expressions
and also trouble shooting arrows is very important.
What's important for me is for you to understand what a group also.
For example if I delete transform or I'll delete the position that zero click out.
Now you notice I have an object group why it's a group because transform has many other properties or
many other options under it.
If I use the same here get pass one.
I don't think I can use it but I will try not.
I cannot be good but I can't keep the size and indeed the size.
I will also have a group object group so object group means that under this object there are options
or attributes or properties or even values that you can use.
So here you are.
I hope this was beneficial.
I hope you understood how it works.
How referencing is done and mainly you look at the data here.
This camp dot layer rectangle one dot contains that content again and then the value the values usually
are always in between square brackets for example position you notice position zero here is in between
brackets.
So the zero is in between square brackets.
Let's go and look at something else here.
If we come to this mall I know you have global and not as Global can give you comp name for this.
And this comp for example.
So if you say name and of course here will have an error because comp name is not referencing to anything
and has no content but also it can go to global and say this camp and it will give you object gompa.
So we will be able to use the menus here or the options that we have here to understand what's working
color that.
Is it the depth of the Kallas you have 8 16 and 13.
Do you see them is in the advanced pre-sets.
Thanks very much for listening and I hope this was useful for you this morning understandings will help
you a lot in understanding the expressions and how referencing is made in expressions.
See you in the next lecture.