1
00:00:01,150 --> 00:00:07,630
Guys and welcome to expression's what you want to do in this lecture is just understand the referencing

2
00:00:07,630 --> 00:00:10,860
system that is written in expressions.

3
00:00:11,050 --> 00:00:11,930
It's pretty easy.

4
00:00:11,950 --> 00:00:18,820
But your understanding of this concept will help you a lot in creating better expressions and will enable

5
00:00:18,820 --> 00:00:22,670
you to correct many mistakes that might happen with you.

6
00:00:22,700 --> 00:00:27,440
So with that text I call that original text and the text inside is original text.

7
00:00:27,550 --> 00:00:37,700
I will create a simple rectangle by now I would like to use in the content of the text.

8
00:00:37,780 --> 00:00:39,850
There is of course source text.

9
00:00:40,060 --> 00:00:45,040
Let's start using the expression in source text press after alternate and click.

10
00:00:45,130 --> 00:00:48,610
Now I will use always that I'm not going to write anything.

11
00:00:48,850 --> 00:00:55,250
So if I take the pick leap here and pointed at this certain composition here for example you notice

12
00:00:55,330 --> 00:00:57,410
it has written Camp 3.

13
00:00:57,430 --> 00:01:00,030
So it is referencing to this group.

14
00:01:00,160 --> 00:01:07,540
If I click out the text will change to become object comp actually referencing to a comp is actually

15
00:01:07,630 --> 00:01:09,350
referencing to an object.

16
00:01:09,520 --> 00:01:12,810
And this is a composition object and that's pretty cool.

17
00:01:13,150 --> 00:01:19,610
Now if I change this and I go to for example the shape player so I'm going to pick up the shape player

18
00:01:19,660 --> 00:01:23,510
only and I click you notice here you have object layer.

19
00:01:23,770 --> 00:01:26,800
So what is the expression on this camp.

20
00:01:26,830 --> 00:01:29,480
That's a reference to this composition.

21
00:01:29,500 --> 00:01:32,500
It's an object comp layer.

22
00:01:32,620 --> 00:01:35,390
It's a reference to layer shape one.

23
00:01:35,530 --> 00:01:37,420
And this will have a shape point.

24
00:01:37,570 --> 00:01:39,680
And now we have object layer.

25
00:01:39,940 --> 00:01:41,230
That's pretty cool.

26
00:01:41,410 --> 00:01:44,760
Now you have two objects and you know how to reference.

27
00:01:44,910 --> 00:01:52,500
And what happens if I change from Layer 2 to 3 for example says layer 3 does not exist.

28
00:01:52,510 --> 00:01:54,090
It gives the error.

29
00:01:54,160 --> 00:01:56,000
So this is mainly what will happen here.

30
00:01:56,030 --> 00:02:03,610
You have certain references that you typed in let's use the clip and then you change the name and things

31
00:02:03,610 --> 00:02:04,430
will go wrong with you.

32
00:02:04,450 --> 00:02:07,630
So not as the reference is very important.

33
00:02:07,630 --> 00:02:11,860
Let's do that again and take shape player 1.

34
00:02:11,870 --> 00:02:18,950
Now if I come to a shape player 1 and she that to rectangle and changing the name of the letter then

35
00:02:19,020 --> 00:02:20,550
the dash 1.

36
00:02:20,600 --> 00:02:26,010
Now you notice the reference here has changed so this camp is a object composition.

37
00:02:26,090 --> 00:02:30,160
And this one layer is a object layer.

38
00:02:30,170 --> 00:02:31,250
Let's add something else.

39
00:02:31,250 --> 00:02:33,740
Let's go ahead and add two content.

40
00:02:33,770 --> 00:02:37,930
I want to take from the content so let's roll down the content here.

41
00:02:38,000 --> 00:02:45,030
So now this we have content we have a rectangle 1 rectangle Part 1 size position and roundness.

42
00:02:45,100 --> 00:02:54,480
I will come to the clip and go up and try to reference for example on the size now and is here the differences

43
00:02:54,650 --> 00:02:56,440
become very long.

44
00:02:56,630 --> 00:02:58,520
We are referencing to this composition.

45
00:02:58,520 --> 00:03:01,570
That's an object camp layer object layer.

46
00:03:01,760 --> 00:03:08,930
And then you have content rectangle what that is that the hierarchy here content's rectangle one rectangle

47
00:03:08,930 --> 00:03:17,470
path one and size and the same is happening here constant rectangle one rectangle path one and size.

48
00:03:17,480 --> 00:03:22,760
And this is pretty amazing because now you know that the last one is not a reference.

49
00:03:22,850 --> 00:03:28,810
The last one is the value size and the first parameter of size.

50
00:03:29,060 --> 00:03:30,110
That's pretty interesting.

51
00:03:30,110 --> 00:03:33,910
Now you know how to get your references right.

52
00:03:34,070 --> 00:03:39,780
If it's come here and you start playing with it you'll get a better notion about how this works.

53
00:03:39,830 --> 00:03:47,750
If I try for example to a reference to the same text and go to path you have text that path option that

54
00:03:47,750 --> 00:03:55,040
path click out and get narrower because path has no content that can be displayed for example is just

55
00:03:55,580 --> 00:03:56,650
a path.

56
00:03:56,660 --> 00:04:04,920
Now if I change I go to more options and I try to grouping alignment not just now there is grouping

57
00:04:04,920 --> 00:04:12,100
along the zero so it's going to take the first one and here is this text dot more options.

58
00:04:12,140 --> 00:04:13,460
So we are in text.

59
00:04:13,520 --> 00:04:16,390
We are in more options grouping alignment.

60
00:04:16,400 --> 00:04:21,620
That's the property and it's taking the first value here the zero value.

61
00:04:21,620 --> 00:04:25,820
And if you play with it even more you can find out that how transform are.

62
00:04:25,880 --> 00:04:26,990
And this is pretty nice.

63
00:04:27,000 --> 00:04:32,070
Let's go to circle and we have here we worked with size.

64
00:04:32,220 --> 00:04:35,390
Let's go to transform for the laya.

65
00:04:35,460 --> 00:04:42,300
If you pick me up on the position this camp later transform not is the hierarchy here.

66
00:04:44,420 --> 00:04:51,590
Layer contents of course transform is not on the content so it's layer transform and position.

67
00:04:51,590 --> 00:04:52,580
And here you are.

68
00:04:52,820 --> 00:04:58,820
So this is for your understanding this will enable you to write if you want to type them the expressions

69
00:04:58,880 --> 00:05:02,070
and also trouble shooting arrows is very important.

70
00:05:02,210 --> 00:05:06,250
What's important for me is for you to understand what a group also.

71
00:05:06,320 --> 00:05:13,190
For example if I delete transform or I'll delete the position that zero click out.

72
00:05:13,200 --> 00:05:19,640
Now you notice I have an object group why it's a group because transform has many other properties or

73
00:05:19,640 --> 00:05:21,700
many other options under it.

74
00:05:21,740 --> 00:05:24,650
If I use the same here get pass one.

75
00:05:24,680 --> 00:05:30,000
I don't think I can use it but I will try not.

76
00:05:30,050 --> 00:05:35,930
I cannot be good but I can't keep the size and indeed the size.

77
00:05:36,560 --> 00:05:44,300
I will also have a group object group so object group means that under this object there are options

78
00:05:44,420 --> 00:05:48,870
or attributes or properties or even values that you can use.

79
00:05:48,890 --> 00:05:49,800
So here you are.

80
00:05:49,820 --> 00:05:51,080
I hope this was beneficial.

81
00:05:51,080 --> 00:05:53,210
I hope you understood how it works.

82
00:05:53,210 --> 00:05:58,240
How referencing is done and mainly you look at the data here.

83
00:05:58,250 --> 00:06:07,160
This camp dot layer rectangle one dot contains that content again and then the value the values usually

84
00:06:07,160 --> 00:06:14,420
are always in between square brackets for example position you notice position zero here is in between

85
00:06:14,780 --> 00:06:15,310
brackets.

86
00:06:15,320 --> 00:06:18,060
So the zero is in between square brackets.

87
00:06:18,320 --> 00:06:20,570
Let's go and look at something else here.

88
00:06:20,630 --> 00:06:27,340
If we come to this mall I know you have global and not as Global can give you comp name for this.

89
00:06:27,410 --> 00:06:29,270
And this comp for example.

90
00:06:29,270 --> 00:06:36,560
So if you say name and of course here will have an error because comp name is not referencing to anything

91
00:06:36,560 --> 00:06:44,500
and has no content but also it can go to global and say this camp and it will give you object gompa.

92
00:06:44,510 --> 00:06:51,380
So we will be able to use the menus here or the options that we have here to understand what's working

93
00:06:51,450 --> 00:06:52,110
color that.

94
00:06:52,160 --> 00:06:55,850
Is it the depth of the Kallas you have 8 16 and 13.

95
00:06:55,840 --> 00:06:59,390
Do you see them is in the advanced pre-sets.

96
00:06:59,420 --> 00:07:04,910
Thanks very much for listening and I hope this was useful for you this morning understandings will help

97
00:07:04,910 --> 00:07:10,370
you a lot in understanding the expressions and how referencing is made in expressions.

98
00:07:10,430 --> 00:07:11,890
See you in the next lecture.

