- [Instructor] In this movie I'll show you how to adjust
the guides to customize the effect of 9-slice scaling.
Alright, so here we are
looking at the badly stretched artwork.
I'll go ahead and select it by clicking inside the artwork.
You can't click inside the frame.
You can't even click on the frame by the way,
that's not going to work.
So you have to click someplace in it.
And I want to modify the symbol,
so I'm going to double click at which point,
I'll go ahead and click OK
in order to enter the symbol isolation mode,
and I'll go ahead and zoom in here.
And so once again,
we have two horizontal guides and two vertical,
and you may wonder how in the world
two horizontal guides and two vertical guides
have anything to do with the number nine.
Well the idea is that we now have nine sections of art,
as I'll trace just using the rectangle tool.
So we've got this upper left quadrant,
and then if I were to switch back to the black arrow tool
by pressing the V key,
I could then drag it over to this top central area.
Then we've got a top right region.
We've got a bottom right region,
a bottom central, and a bottom left,
and then we've got a center left,
we've got a center center,
and then we've got a center right.
So, nine regions in all.
And the idea is that this area in the center
is going to stretch all over the place.
Whereas these guys in the far corners,
top left, bottom left, bottom right, and top right,
they're not going to scale at all.
So they're going to remain fixed.
And then this region is going to scale vertically.
This region's going to scale vertically.
Whereas the top central region
and the bottom central region
are going to scale horizontally.
And so what we need to do is set up the guides
so that the proper portion of the artwork is scaling.
Alright so I'll go ahead and get rid of that rectangle,
and now I'll hover over this horizontal guide right here.
The right hand guide.
And I'll drag it to the other side of the arrowhead,
and that way, the arrowhead is now protected
from any horizontal scaling.
Now I'll drag this left guide to beyond the tail,
the feathery tail there,
and now that's going to take care of the
horizontal scaling just fine.
But it's still going to mess up the vertical scaling.
Which is why we need to take this bottom guide
and move it to above the rounded corner.
And then we need to take the top guide
and move it to below the rounded corner.
So just this region is going to scale vertically,
and this region is going to scale horizontally.
After which point, I'll press the ESC key,
in order to update the symbol and you can see,
that ends up working beautifully.
And I could continue to scale this guy
anyway I like and I'm never going to effect
the arrowhead or the tail
and I'm not going to stretch the arrow vertically at all.
Alright, now let's see what happens
if we focus our attention only on the arrow.
I'm going to go ahead and select these paths like so.
And I'm no longer interested in the bounding box,
so I'm going to go up to the view menu
and choose hide bounding box,
or you have the keyboard shortcut of control shift B,
or command shift B on the Mac.
And then I'll once again bring back my symbols panel
and I'll click on the little page icon
at the bottom of the panel,
and I'll call this guy arrow only.
I'll set the registration point to the middle left
right here and we'll see what that looks like in a moment.
And then I'll turn on enable guides for 9-slice scaling
and I'll click OK.
And that turns this guy into an instance
as we're seeing here.
Notice the cross is now appearing over
on the left side of the shape.
And that's because that's where
I just put the registration point.
And so let's say I decide to scale the arrow,
this time using the scale tool.
Notice that the origin point is now located by default
over here on the left side of the object.
Now I can still move it if I want to by clicking,
however its default location
is going to be right about there,
and I'll see that's the case if I switch back and forth.
I'll just press the V key to switch back
to my black arrow tool
and then I'll click on the object to select it
and I'll press the S key to switch back to the scale tool.
And there it is.
Alright now I'm just going to drag horizontally
to scale the arrow.
And I'm pressing the shift key as well,
so that I'm scaling the arrow.
And you can see that as before,
it's very messed up.
Now let's say what I want to have happen
is that just the shaft scales horizontally
and that no scaling occurs vertically.
Well, can't really pull that off.
And let me show you what I mean.
I'll press the V key to switch to my black arrow tool
and I'll double click on the shape
in order to edit the original symbol definition
and then I'll just go ahead and drag the vertical guides
so they fit right there inside that purple shaft.
And as things stand now this are would scale vertically.
I don't want it to scale vertically at all.
So I'm just going to move these guides up here
to an empty region in order to fool Illustrator,
and then I'll press the ESC key to accept that change.
And now notice it just says,
"Fine. If you're going to be that way,
then I'm just going to scale the entire shape,
and I'm not going to pay attention to your guides at all."
So there you have it.
Illustrator cannot be fooled.
So what you have to do is double click on that guy again,
click OK, and then just go ahead
and move one of the guides to underneath the arrow
and the other to above the arrow like so,
and then press the ESC key.
And notice now that Illustrator goes ahead
and stretches the arrow the way I want it to.
The problem is, if I click on the arrow to select it
and press the S key to switch to the scale tool,
and I scale this guy vertically,
then I'm going to just scale the arrow proportionally.
Alright that's not what I want however,
so I'll just undo that last scale.
And to finish off the effect,
I'll press the V key to switch to my black arrow tool
and I'll just drag this banner item over,
so that it kind of fits inside
the negative space of the arrow.
And that's how you adjust the guides
to customize the effects of 9-slice scaling,
here inside Illustrator.