Showing posts with label actions. Show all posts
Showing posts with label actions. Show all posts

June 1, 2011

ASK MORDY: Eyedropper Tool Woes


This question comes in from Dan:

If I have a white rectangle with some transparency applied and it sitting directly over another rectangle with a red fill, what you end up seeing where they overlap is not red, not white but pink. Not rocket science....I know. However if I want to use the eyedropper to pick up that pink color....I cannot do it. I've been researching and fiddling with eyedropper settings but no matter what I do, eyedropper only picks up "white"; it sees the objects, not the color. If I take a screen shot of Illustrator and place that flattened 2-dimensional image back into Illustrator, now eyedropper "sees" the pink and picks it up if I shift-click. How do you make eyedropper pick up the resulting pixel color....not the fill color when you're dealing with transparencies? 

That's a great question, Dan. Just to illustrate the "issue" here, say you have two shapes -- a yellow and a blue rectangle -- that overlap. The blue shape is set to multiply, so where the two shapes overlap, you see green. If you use the Eyedropper tool to sample the area that "looks" green, you'll actually pick up blue. That's because the Eyedropper tool is picking up the fill attribute of the rectangle -- not the final color that's a result of the transparent effect. 

Sampling from the "green" area will actually result in a blue color.

January 14, 2009

TUTORIAL: Recoloring Artwork

One of the more powerful features to have been introduced to Illustrator as of late is the Recolor Artwork feature. When it was introduced in CS3, it was called "Live Color" but thankfully, Adobe dropped that name and now officially refer to it by its more descriptive name: Recolor Artwork. Granted, the feature itself is incredibly complex, but that's because it just does so much, You can't really demo it unless you have a specific task you're looking to accomplish.

On the User to User Forum, someone asked specifically how to accomplish a task, which was really a perfect example for showing one specific part of the Recolor Artwork feature. So I recorded a quick little movie, which I think can help people get a better idea of what the feature does and how to use it -- at least for this one specific task.

Because the Recolor Artwork feature works only on selected artwork, I also added a bit on defining a custom action to help automate the process of unlocking and selecting the art.


Recoloring Artwork in Illustrator CS4 from Mordy Golding on Vimeo.

What the video doesn't show is how to re-lock all of the art once the color edits have been made. To address that you'd actually choose View > New View when you first open the document. Then, after you've completed the color edit, simply choose View > New View 1 (or whatever you've named your view).

As an aside, this tutorial will work in CS3 as well.

Enjoy!

December 2, 2007

TECHNIQUE: Pick a Corner... Any Corner.

In a recent post, I answered a reader's question about rounding some of the corners of a rectangle. Although the rectangle in the original question wasn't really a rectangle at all -- it was a dynamic button that was created from live text.

At the end of the post, I asked other readers to share their own ideas about to go about rounding off specific corners of an object. There were some interesting answers, including a link to a script, which was nice. Good work all around -- it's always good to get the creative juices flowing, and in the future, I hope to challenge more of you with other "projects" to participate in.

One of the things we learn about with Illustrator (more so than just about any other program), is that there are always a variety of ways to get any design task done. Some are more efficient than others. Some are easier to implement. Each offer pros and cons and each offer benefits for certain design tasks. With that in mind, I offer my solution for creating rectangles with a rounded corner (or three) of your choice...

As an example, here's a rectangle that has rounded corners on two opposite sides:



The way I did this was by creating a normal rectangle and using the normal Round Corners effect (under the Effect > Stylize menu). I then added an additional fill, which didn't have rounded corners. With the second fill targeted, I applied a Transform effect that applied a 50% scale to the fill and I instructed the Transform to be applied from a specific origin point -- a corner of my choice. This action effectively "covered up" the rounded corner with a square corner. Had I expanded the shapes, the result would look like this:



The key here is in the Transform effect. Let's see how I did this, step-by-step:

1. Draw a rectangle. Apply a fill and remove the stroke.

2. Choose Effect > Stylize > Round Corners and apply the effect.

3. Via the Appearance panel fly-out menu, add a new fill.

4. With the new fill targeted, choose Effect > Distort & Transform > Transform. In the Scale section, set both the Horizontal and Vertical values to 50%. Now for the most important part -- using the 9-point proxy, select one of the 4 corners to apply the scale from. The corner you choose will NOT have a rounded corner. Click OK to apply the effect.



5. Duplicate the fill and double-click the Transform effect in that fill. Change the origin point in that fill to specify another corner that should have a square corner. Repeat to add a third fill if you'd like. Your Appearance panel should look something like this:



Naturally, you could save this as a Graphic Style so that you could apply this with a single click. You might even create an entire library of styles that stored different corners of an object as being rounded, for any design task. Of course, these are all graphic styles with multiple fills and effects. And sometimes you need just a single plain flat object with a rounded corner. You could of course draw your rectangle, quickly apply a style, expand the appearance, and then use Pathfinder to create a single final shape. I know -- that's a lot of clicks. So having an action that would do all this for you with a simple keyboard shortcut would probably be better.

In fact, being that the holidays are upon us, I've decided to give all of my dedicated readers a gift. Two actually.

The first is a Graphic Style library that you can download. This library contains a plethora of styles with different round corner effects. All you need to do is load the style library and you're good to go. One click will give you the rounded corner(s) of your choice. Feel free to adjust the parameters as you see fit. I used a rather large round corner setting, mainly so the preview in the Graphic Styles panel clearly shows each effect.



The second is an Action that expands and combines the effect, leaving you with a flattened object. Once you load the Action, you can use the keyboard shortcut which I've assigned (Command-Shift-F12) or you can apply your own.

- Rounded Corner Graphic Style Library
- Expand and Combine Action

BTW, you can also copy and paste any of these shapes into InDesign if you'd like.

Hanukkah begins this week, and here in NY, we got a taste of winter with a bit of snow today. No matter what holiday you observe, I wish you and your loved ones only the most joyous and happiest of times. Maybe you'll be lucky enough to take a few moments to actually walk AWAY from the computer and enjoy all that life offers. I hope to do just that.