- Alright, when we last left off, our shadows were leaking
outside of our cube of cubes.
What we want is for the individual cubes to cast shadows
onto each other, but not out into the void.
And so the solution is gonna be
to create three levels of cubes.
One that conveys the bright glow,
another that casts the shadows,
and then a third that serves as a clipping mask.
And so I'll go ahead and switch over to my documents so far,
and I'll click on one of the purple cubes
to select the entire group.
And then I'll hide the other ones by going up
to the Object menu, choosing Hide,
and choosing All Artwork Above,
which will make the red, green, and blue cubes disappear.
Alright now we want to create a copy of these guys
by going up to the Edit menu and choosing the Copy command,
or you can prease Control+C or Command C on the Mac.
Now you want to go over to the Appearance panel,
which for me is still on screen in the lower left corner.
And I'll double click on the word Contents in order
to switch focus to the mid level groups,
which are the cubes themselves, and now
I'll grab that outer glow that I applied
in the previous movie, and I'll click on the Trash icon
in the bottom right corner of the Appearance panel
in order to get rid of them.
And now, as you can see, we have a clean glow
on the outside of the cube of cubes,
but we don't have any shadows in between.
Alright now I'll bring back the original purple cubes,
the ones I just copied, by going up to the Edit menu,
and choosing Paste In Front, or you can press
Control+F or Command F on a Mac,
and this time around we want get rid of the glow right there
by clicking on the outer glow effect that's assigned
to the top level group, and then again clicking
on the Trash icon in the bottom right corner
of the Appearance panel.
Alright now I press Control+Shift+A,
or Commend Shift A on the Mac,
in order to deselect my artwork.
Now the good news is we're no longer shoving out
that bright glow effect with the dark glows,
but instead we have the dark glows layered on top,
which also is not what we want.
And so what we need is a clipping mask in the form
of the cubes themselves,
and so I'll go ahead and press Control+F,
or Command F on the Mac, in order to paste
another copy of those cubes.
Again we don't want the bright glow effect right there,
so go ahead and click on it here
inside the Appearance panel, and then click
the Trashcan icon in order to get rid of it.
And then what you wanna do is go up
to the Window menu and choose the Pathfinder command
to bring up the Pathfinder panel.
And then just go ahead and click on that first icon
in the first row, Unite, in order to fuse all those shapes
into one.
And now you can hide the Pathfinder panel.
Alright we want to be able to select the cubes
in the background, and the easiest way to do that
is to get rid of the fill by clicking
in this first color swatch up here in the control panel,
and selecting it to None, which isn't gonna cause us
any problems because in the next step,
we're gonna lose our Fill and Stroke anyway,
and now what you wanna do is Shift click
on that top level of cubes in the background,
the one that's conveying the shadows,
so that both the United shape and those cubes
are selected, and then go to the Object menu,
choosing Clipping Mask and choose Make.
And you will end up with this stunning effect
right here, after which point you can bring back
the hidden cubes by going to the Object menu and
choosing Show All, or you have that keyboard shortcut
of Control+Alt+3 or Command Option 3 on the Mac.
Now the problem is that I went ahead and pasted
these other shapes in front, and so these other cubes
are in the background.
That's easily resolved, however, by right clicking
anywhere inside the document window,
choosing Arrange, and choosing Bring to Front,
or you have that keyboard shortcut
of Control+Shift+[ or Command Shift [ on the Mac,
and then you can deselect your artwork
just by clicking off of it.
And that's how you clip one or more dynamic effects
inside the objects to which they were applied
in the first place here inside Illustrator.