1
00:00:00.05 --> 00:00:02.00
- [Instructor] In this
movie I'll show you how to

2
00:00:02.00 --> 00:00:04.09
align objects to the
pixel grid as you draw

3
00:00:04.09 --> 00:00:06.06
or transform them,

4
00:00:06.06 --> 00:00:08.08
and as you may recall a transformation

5
00:00:08.08 --> 00:00:12.03
includes movement, scaling and so forth.

6
00:00:12.03 --> 00:00:13.05
Now, I've gone ahead and saved

7
00:00:13.05 --> 00:00:15.03
an updated version of this file,

8
00:00:15.03 --> 00:00:17.03
and so notice if I go to the View menu

9
00:00:17.03 --> 00:00:20.00
that Pixel Preview is turned on,

10
00:00:20.00 --> 00:00:21.05
and that's because this function

11
00:00:21.05 --> 00:00:24.06
is a saved attribute of the file,

12
00:00:24.06 --> 00:00:26.03
and so, if I were to go ahead

13
00:00:26.03 --> 00:00:29.00
and zoom in, once again,
by control space bar

14
00:00:29.00 --> 00:00:30.08
or command space bar clicking

15
00:00:30.08 --> 00:00:33.03
and then I were to grab
my Line Segment Tool

16
00:00:33.03 --> 00:00:35.06
and now crank the line weight value up

17
00:00:35.06 --> 00:00:37.08
to let's say eight points,

18
00:00:37.08 --> 00:00:40.02
just so that it's all
together unambiguous,

19
00:00:40.02 --> 00:00:41.06
and I'll draw with the line tool

20
00:00:41.06 --> 00:00:42.08
while pressing the shift key

21
00:00:42.08 --> 00:00:44.01
in order to constrain the angle

22
00:00:44.01 --> 00:00:46.04
of my line to exactly horizontal.

23
00:00:46.04 --> 00:00:48.02
Notice, that I'll once again end up

24
00:00:48.02 --> 00:00:50.08
with that unnecessary anti-aliasing.

25
00:00:50.08 --> 00:00:52.03
Now, of course I can get rid of it

26
00:00:52.03 --> 00:00:54.08
by clicking on this align selected

27
00:00:54.08 --> 00:00:57.00
art to pixel grid icon on the far left

28
00:00:57.00 --> 00:00:58.04
side of the control panel,

29
00:00:58.04 --> 00:01:01.00
but let's say what I
really want to do is ensure

30
00:01:01.00 --> 00:01:04.06
that all future objects
align to the pixel grid.

31
00:01:04.06 --> 00:01:07.03
In that case, I would click
on this next icon over,

32
00:01:07.03 --> 00:01:11.02
align art to pixel grid on
creation and transformation,

33
00:01:11.02 --> 00:01:13.04
and so, notice when I click on that icon,

34
00:01:13.04 --> 00:01:14.02
it's sticky.

35
00:01:14.02 --> 00:01:15.07
So, it turns the function on.

36
00:01:15.07 --> 00:01:17.09
It does not affect the selected line.

37
00:01:17.09 --> 00:01:20.03
It rather affects all future lines,

38
00:01:20.03 --> 00:01:23.00
and so now if I draw another
line with the line tool

39
00:01:23.00 --> 00:01:25.00
while pressing and holding the shift key,

40
00:01:25.00 --> 00:01:27.09
this time it is aligned
perfectly into place.

41
00:01:27.09 --> 00:01:30.01
Also, notice if I were to press the v key

42
00:01:30.01 --> 00:01:32.02
to switch to my black arrow tool up here

43
00:01:32.02 --> 00:01:33.02
at the top of the toolbox,

44
00:01:33.02 --> 00:01:35.09
and I were to drag this guy
to a different position,

45
00:01:35.09 --> 00:01:38.07
it will remain aligned to the pixel grid,

46
00:01:38.07 --> 00:01:42.02
but if it was created off the
pixel grid in the first place

47
00:01:42.02 --> 00:01:44.00
and you drag it to a different position,

48
00:01:44.00 --> 00:01:47.00
it will remain unnecessarily anti-aliased

49
00:01:47.00 --> 00:01:49.07
until you click on this
first icon over here

50
00:01:49.07 --> 00:01:52.05
in order to align it like so.

51
00:01:52.05 --> 00:01:54.07
Also, notice where the
line weight is concerned,

52
00:01:54.07 --> 00:01:57.00
you need to move and
hold pixel increments,

53
00:01:57.00 --> 00:02:01.05
and so if I changed this line
weight to 8.5 points instead,

54
00:02:01.05 --> 00:02:04.06
then I will end up with anti-aliasing.

55
00:02:04.06 --> 00:02:07.03
Even if I click that icon to align

56
00:02:07.03 --> 00:02:09.03
that object to the pixel grid.

57
00:02:09.03 --> 00:02:11.06
So, notice at this point,
most of the line is black,

58
00:02:11.06 --> 00:02:14.04
but we do have a little bit
of grayness up here at the top

59
00:02:14.04 --> 00:02:16.02
and the bottom.

60
00:02:16.02 --> 00:02:19.05
That goes double if you go
with a very low line weight

61
00:02:19.05 --> 00:02:20.06
such as a quarter point.

62
00:02:20.06 --> 00:02:23.00
Notice now we end up with
this light gray line.

63
00:02:23.00 --> 00:02:24.01
If that's not what you want,

64
00:02:24.01 --> 00:02:26.02
just go ahead and select
the line once again,

65
00:02:26.02 --> 00:02:29.04
increase the line weight
to let's say one point

66
00:02:29.04 --> 00:02:31.04
and then click on that alignment icon

67
00:02:31.04 --> 00:02:34.06
on the far right side
of the control panel.

68
00:02:34.06 --> 00:02:35.09
Now, this alignment is going to work

69
00:02:35.09 --> 00:02:37.04
with any perpendicular line,

70
00:02:37.04 --> 00:02:39.05
whether you draw it with a line tool.

71
00:02:39.05 --> 00:02:41.09
You can draw it with a
pen or curvature tool.

72
00:02:41.09 --> 00:02:43.05
You could even use something like

73
00:02:43.05 --> 00:02:46.00
the rectangle tool if you want to,

74
00:02:46.00 --> 00:02:48.02
and so notice if I select
the rectangle tool,

75
00:02:48.02 --> 00:02:49.09
and once again, crank that line weight

76
00:02:49.09 --> 00:02:51.05
value up to eight points,

77
00:02:51.05 --> 00:02:53.08
when I draw the rectangle it is going

78
00:02:53.08 --> 00:02:55.07
to appear perfectly aligned.

79
00:02:55.07 --> 00:02:57.04
You have to draw these shapes

80
00:02:57.04 --> 00:02:59.08
however using the Shape tools.

81
00:02:59.08 --> 00:03:02.09
If you try to work with
the Shaper tool instead,

82
00:03:02.09 --> 00:03:05.03
you're not going to get
pixel perfect alignment,

83
00:03:05.03 --> 00:03:07.00
and so notice if I just go ahead

84
00:03:07.00 --> 00:03:09.02
and draw this terrible rectangle,

85
00:03:09.02 --> 00:03:11.01
Illustrator correctly interprets it

86
00:03:11.01 --> 00:03:12.04
in this case as a square,

87
00:03:12.04 --> 00:03:14.09
but the the square is out of alignment,

88
00:03:14.09 --> 00:03:16.04
and so if you want to align it,

89
00:03:16.04 --> 00:03:17.07
then you need to select it,

90
00:03:17.07 --> 00:03:19.08
and I'm going to do that
by going to the view menu

91
00:03:19.08 --> 00:03:22.01
and turning on the Bounding Box

92
00:03:22.01 --> 00:03:24.03
by choosing the Show Bounding Box command.

93
00:03:24.03 --> 00:03:27.04
Then I'll click on that
shape in order to select it

94
00:03:27.04 --> 00:03:29.05
and I'll go up to this
icon on the far right side

95
00:03:29.05 --> 00:03:30.05
of the control panel

96
00:03:30.05 --> 00:03:34.07
and click on it and
everything works out swell.

97
00:03:34.07 --> 00:03:36.07
Now, I want you to notice that
there's this down pointing

98
00:03:36.07 --> 00:03:38.06
arrowhead next to this icon.

99
00:03:38.06 --> 00:03:40.07
If you click on it,
you'll actually bring up

100
00:03:40.07 --> 00:03:43.02
a kind of dialogue box
that's going to tell you

101
00:03:43.02 --> 00:03:46.04
the various snapping options
that are available to you

102
00:03:46.04 --> 00:03:49.01
and you can see this snapping
demonstrated when you hover

103
00:03:49.01 --> 00:03:50.06
over a certain area.

104
00:03:50.06 --> 00:03:52.06
So, notice the animation changes

105
00:03:52.06 --> 00:03:54.08
when I hover over this middle area

106
00:03:54.08 --> 00:03:58.04
and when I hover over
this bottom area as well,

107
00:03:58.04 --> 00:04:00.07
and so you can check those
out as much as you like.

108
00:04:00.07 --> 00:04:03.05
What I want you to notice
is these moving options.

109
00:04:03.05 --> 00:04:06.01
Notice Illustrator's going
to try to snap your objects

110
00:04:06.01 --> 00:04:09.05
into the proper alignment when
moving whole path outlines,

111
00:04:09.05 --> 00:04:13.06
when moving individual
perpendicular segments incidentally,

112
00:04:13.06 --> 00:04:15.07
as well as anchor points.

113
00:04:15.07 --> 00:04:17.08
Now, this anchor points option here

114
00:04:17.08 --> 00:04:20.01
also affects control handles,

115
00:04:20.01 --> 00:04:21.09
and so, if you want more freedom

116
00:04:21.09 --> 00:04:23.07
when positioning your control handles,

117
00:04:23.07 --> 00:04:27.00
you need to turn this
anchor points option off.

118
00:04:27.00 --> 00:04:29.02
I'm going to leave it on however,
and I'm going to point out

119
00:04:29.02 --> 00:04:30.06
this last option.

120
00:04:30.06 --> 00:04:33.00
Snap to pixel while scaling.

121
00:04:33.00 --> 00:04:34.08
Notice that it's turned on.

122
00:04:34.08 --> 00:04:37.03
The thing is it doesn't
necessarily work the way

123
00:04:37.03 --> 00:04:38.06
you might anticipate,

124
00:04:38.06 --> 00:04:40.06
and so, I'll just go ahead and click okay

125
00:04:40.06 --> 00:04:43.00
and I'll switch over to
this document right here

126
00:04:43.00 --> 00:04:46.00
which features this
enormous command key symbol.

127
00:04:46.00 --> 00:04:48.04
Now, I'm going to go
ahead and zoom in on it,

128
00:04:48.04 --> 00:04:50.03
once again, to 400%,

129
00:04:50.03 --> 00:04:51.09
and then I'll go up to the View menu

130
00:04:51.09 --> 00:04:54.04
and choose Pixel Preview
because after all,

131
00:04:54.04 --> 00:04:58.00
this document was saved
without this command turned on,

132
00:04:58.00 --> 00:05:01.04
and now notice that we do
have some of that unnecessary

133
00:05:01.04 --> 00:05:06.09
anti-aliasing along our
vertical and horizontal edges.

134
00:05:06.09 --> 00:05:09.06
To clear that up, I'll go
ahead and press the v key

135
00:05:09.06 --> 00:05:11.02
to switch back to my Move tool

136
00:05:11.02 --> 00:05:13.07
and I'll click on that object to select it

137
00:05:13.07 --> 00:05:15.09
and then I'll click on that alignment icon

138
00:05:15.09 --> 00:05:18.01
on the far right side of the control panel

139
00:05:18.01 --> 00:05:22.00
and once again, that bad
anti-aliasing goes away,

140
00:05:22.00 --> 00:05:23.08
and to make it clear
what I'm talking about,

141
00:05:23.08 --> 00:05:25.05
I'll click off the object for a moment.

142
00:05:25.05 --> 00:05:28.00
Notice that the horizontal
and the vertical edges

143
00:05:28.00 --> 00:05:30.04
are no longer anti-aliased,

144
00:05:30.04 --> 00:05:33.01
but the curved segments of course, are.

145
00:05:33.01 --> 00:05:34.07
So, I'll press control zero

146
00:05:34.07 --> 00:05:36.06
or command zero on the Mac to zoom out,

147
00:05:36.06 --> 00:05:38.09
and then I'll go ahead and
click on the second icon

148
00:05:38.09 --> 00:05:41.04
in order to ensure all future objects

149
00:05:41.04 --> 00:05:42.09
align to the pixel grid

150
00:05:42.09 --> 00:05:45.00
and then I'll click on
the symbol to select it

151
00:05:45.00 --> 00:05:47.02
and now because the
Bounding Box is turned on,

152
00:05:47.02 --> 00:05:49.02
I have access to my scaling handles,

153
00:05:49.02 --> 00:05:51.07
and now just go ahead and
make this guy much smaller

154
00:05:51.07 --> 00:05:54.00
and I'll even press the shift
key in order to constrain

155
00:05:54.00 --> 00:05:55.06
the proportions of the shape,

156
00:05:55.06 --> 00:05:58.05
and then I'll release to make
the command key much smaller.

157
00:05:58.05 --> 00:05:59.09
Now, I'll press control plus

158
00:05:59.09 --> 00:06:01.05
or command plus on the Mac in order

159
00:06:01.05 --> 00:06:02.08
to zoom in on that object

160
00:06:02.08 --> 00:06:05.02
and notice if I deselect it,

161
00:06:05.02 --> 00:06:07.08
I once again have anti-aliasing.

162
00:06:07.08 --> 00:06:09.04
So what in the world gives?

163
00:06:09.04 --> 00:06:12.00
Well, notice if I click
this down pointing arrowhead

164
00:06:12.00 --> 00:06:14.01
to bring up the dialogue box that we have

165
00:06:14.01 --> 00:06:16.08
a very interesting
description of this option.

166
00:06:16.08 --> 00:06:19.01
The edges of the bounding box will snap

167
00:06:19.01 --> 00:06:20.08
to the pixel grid I'm scaling.

168
00:06:20.08 --> 00:06:23.00
Well, that's great if
you're scaling a rectangle,

169
00:06:23.00 --> 00:06:24.09
but it's not good for much more,

170
00:06:24.09 --> 00:06:27.08
and so because there's really
nothing that needs to snap

171
00:06:27.08 --> 00:06:30.00
at the edges of the bounding box,

172
00:06:30.00 --> 00:06:32.04
we don't get the proper behavior,

173
00:06:32.04 --> 00:06:33.09
and so if you run into that,

174
00:06:33.09 --> 00:06:35.08
then just remember that you can align

175
00:06:35.08 --> 00:06:37.07
any selected object you like,

176
00:06:37.07 --> 00:06:40.02
just by right clicking
inside the document window

177
00:06:40.02 --> 00:06:43.03
and choosing Make Pixel
Perfect at which point

178
00:06:43.03 --> 00:06:47.01
your horizontal and vertical
segments will look great.

179
00:06:47.01 --> 00:06:48.06
Finally, let's look at what happens

180
00:06:48.06 --> 00:06:50.03
when you create a new document.

181
00:06:50.03 --> 00:06:52.09
So, I'll go to the file menu
and choose the New command

182
00:06:52.09 --> 00:06:56.01
or of course you can control
n or command n on a Mac.

183
00:06:56.01 --> 00:06:58.02
Now, in previous versions of Illustrator,

184
00:06:58.02 --> 00:07:00.02
if you twirled open the Advanced setting

185
00:07:00.02 --> 00:07:02.05
here inside the old style dialogue box,

186
00:07:02.05 --> 00:07:06.02
you would see a checkbox
labeled align to pixel grid.

187
00:07:06.02 --> 00:07:07.02
That's no longer here,

188
00:07:07.02 --> 00:07:09.00
but the function still exists,

189
00:07:09.00 --> 00:07:10.08
and so the trick is to start

190
00:07:10.08 --> 00:07:12.04
with one of the mobile documents

191
00:07:12.04 --> 00:07:14.03
or a web document,

192
00:07:14.03 --> 00:07:16.06
and so, let's say I go
ahead and switch to mobile

193
00:07:16.06 --> 00:07:18.02
and select iPad Pro

194
00:07:18.02 --> 00:07:20.00
and then click on the create button,

195
00:07:20.00 --> 00:07:23.04
notice the alignment icon
is turned on in the top

196
00:07:23.04 --> 00:07:24.09
right corner of the screen.

197
00:07:24.09 --> 00:07:27.05
Whereas, if I were to
return to the New command

198
00:07:27.05 --> 00:07:30.08
and select Art and Illustration instead,

199
00:07:30.08 --> 00:07:33.00
and then select let's say Poster

200
00:07:33.00 --> 00:07:36.05
and click Create, that icon is turned off.

201
00:07:36.05 --> 00:07:39.09
Now, obviously you can change
that setting anytime you like,

202
00:07:39.09 --> 00:07:43.02
but I just want you to
be aware that it's there,

203
00:07:43.02 --> 00:07:44.06
and that's how you align objects

204
00:07:44.06 --> 00:07:46.05
to the pixel grid as you draw

205
00:07:46.05 --> 00:07:50.03
or transform them here
inside Illustrator CC.

