- [Voiceover] A question that I get often times, especially
from old freehand users, is how do you scale, rotate,
and duplicate in one operation?
For example, using the scale tool, you can scale and
duplicate, and then repeat that process,
using the rotate tool, you can rotate and duplicate
and then repeat that process, but how do you do both?
The answer is you apply a transform effect.
So we're gonna be scaling, rotating, and duplicating
these base petals in order to create this effect right here.
Alright, so first thing we want to do, of course, is
click in the shape in order to select it,
and then I'm gonna back out just a little bit,
and I'm gonna go up to the window menu and choose the
appearance command so I can gain access to my fill and
stroke attributes, as well as my dynamic effects.
Now I want to create various colors of flower petals here.
And so I'm going to apply my transform effect directly
to the fill.
So that means I need to select a fill, here inside the
appearance panel, and then I'll go up to the effect menu
and choose the second occurrence of transform, the one that
reads, "dot dot dot."
And that'll bring up a transform effect dialogue box,
complete with my last applied settings.
And I'm gonna change both the horizontal and vertical
scale values to 117%, and then I'll turn around the preview
check box so I can see what's up.
Notice I still have my angle values set to 22.5 degrees.
That's not a problem, just leave it that way for now.
But also notice, if I increase the number of copies,
I'm getting a kind of alternating petal effect, which is
what I want, but then the outermost petal doesn't look
right at all.
And so I'm gonna click "OK" in order to accept what I've
done so far, but I want to show you what the problem is
after I go ahead and enhance the gradient so we can better
see what we're doing.
So I'll go ahead and switch to the gradient panel right
there, and I'll click on that first color stop,
the one that has a location value currently of 0%,
and I'll raise that location value to 75%.
And that way we've got a lot more contrast right next to
the intersection of the petals.
Alright, now I'll switch back to the stroke panel
to give myself a little more room to work.
And here's the problem.
Notice how pucker and bloat is applied to the path,
but it was applied first so it's at the top of the list.
This transform function right there, that's the one that we
applied in the previous movie, which is why it's at the
bottom of the list, because it was applied last, but for
some reason the stroke and fill attributes come in between.
What we need to do is grab that transform right there,
the last one, which is the one we applied in the previous
movie, and we need to put it at the top of the stack so that
it's applied before the transformation we're in the process
of applying now.
And so notice, as soon as you do that, that completely
changes the effect, as we're seeing right here.
Alright now I'll go ahead and click on the transform effect
that's assigned to the fill in order to modify those
settings, and what we wanna do is turn on the preview
checkbox, and in order to alternate things properly,
we wanna take that angle value and divide it by 2.
So click after and enter 'slash 2' and press the Tab key,
and you'll get a value of 11.25 degrees, which is exactly
what we want.
But I really want you to understand what's going on here,
so I'm gonna start with the angle value set to zero degrees,
and I'll press the Tab key so we go back to non alternating
petals, and then I'll click inside that value and I'll press
the up arrow key, and notice how I'm moving things around
sequentially into a kind of nautilus pattern, which is
really interesting.
And then, at about 11 degrees, things seem to alternate
correctly.
The thing is, that's not exactly the right value.
The exact right value is either the 22 1/2 divided by two,
or you can think of it as being 360 instead of divided by 16
it would be divided by 32 this time around.
And again, if I press the Tab key, I will now see an angle
value of 11.25 degrees, which is exactly what I want.
Alright now click the "OK" button and I'll press
Control + 0, or Command + 0 on a Mac, to zoom out so that
I can see my entire art board.
And just so I can better see what I'm doing in general,
I'll go ahead and switch back to the layers panel
and turn off the guides layer.
I also wanna get rid of my smart guides for now.
So I'll go out to the view menu and choose smart guides
to turn them off, and now I'll switch back to the
appearance panel and, once again, click on that most recent
transform effect, the one that's assigned only to the fill,
and you can tell that's the case because it's inset,
compared to this one up here.
And now I'll turn on a preview checkbox.
I'll click inside the copies value and I'll just press the
up arrow key until I absolutely completely fill the art
board, which happens at 24 copies, at which point I'll click
"OK" in order to accept that effect, and I'll press
Control + Shift + a, or Command + Shift + a on a Mac,
in order to deselect my artwork.
And that's how you repeat a series of petals, or really
any kinds of objects, by scaling, rotating, and duplicating
in a single operation using the transform effect here
inside Illustrator.