Hot Stuff

Weekly Contest
FREE AKVIS Sketch!
CreativePro.com Podcast
Don't miss it! Updated every Monday.
FREE Mags for Creative Pros!
Creativity, Website Magazine, and more!
Create Dynamic Cast Shadows in InDesign
Follow the lead of a hard-boiled private design investigator as he solves the mystery of InDesign’s missing cast shadow.
Written by Pariah Burke on January 14, 2009
Related Articles
Related Reading
That night began like any other: I sat alone in my office, the buzzing streetlights casting flickering bands of color across my desk. I had just swallowed my last shot of cheap instant coffee, feeling it burn its way down my gullet, when she walked in.
The Client.
Maybe “walked in” isn’t the right phrase. She had more curves than a Bezier tool, and she flowed in with the supple grace of a placed story moving through threaded text frames. Her eyes were rich black, a full-on CMYK mix of deep, mysterious ink. Her smooth skin was like aqueous varnish on ultra-smooth paper. Most striking of all were her lips. I knew instantly what must be written on the cap of her lipstick tube: PANTONE 1797 C.
“You’re a private design investigator,” she said, her voice the sultry hum of a high-speed offset press turning out a six-color job.
“I am. How can I help you, Miss…?”
She continued, as if I hadn’t spoken or wasn’t worth the gift of her name. “I’ve lost my cast shadow. I need you to find it.”
By way of demonstration she glided across my office. Wherever she stepped, a soft pool of darkness stayed directly below her. That drop shadow pooled about her spiked heels like a bad mood. It was Multiply blending mode, I knew. And it wasn’t a true shadow.
This woman didn’t trail a cast shadow, only a cheap imitation.
“Find it for me,” she purred. “This” -- she dropped a thick envelope embossed with the initials CMYK on the closed lid of my MacBook -- “should be enough.”
Without another word, she strode back to the door of my office, opened it, and was gone.
The Trail to a Cast Shadow
It took me a few hours of pounding the pavement, squeezing every gutter rat snitch I knew, to piece it together. Anyone could get a drop shadow in InDesign, but a real cast shadow took some doing. I had to go all over the application, looking in all-but-abandoned menus and seedy dialog boxes, but I had it. I had my client’s cast shadow.
The secret was in text variables. Once a snitch -- a retired fence named Micky Matchprint -- turned me on to where to find text variables, the rest was simply connecting the registration dots.
The trick, Micky explained, was to define the source as a text variable. So I went to the Type menu, then to the Text Variables submenu, and then into the Define dialog (Figure 1). Once there I hit the New button.
Figure 1. The Text Variables dialog box in InDesign CS3 and CS4.

Then I described my client. Name: “Client”. Type: “Custom Text". Text: “Mystery,” because I had begun to call her Ms. Mystery for lack of a real name.
I clicked OK and found “Client” now listed in the Text Variables dialog. I clicked Done and got out of there.
Heading out to the pasteboard where I could work free from prying eyes, I created a new text frame.
With my Type tool in hand, I clicked inside the text frame and went back to Type > Text Variables but bypassed the extension for Define. Instead I navigated through to Insert Variable and called up Client (Figure 2). Instantly the pseudonym I’d given my client, “Mystery,” appeared in the empty text frame. I could call her up again any time, from any page and place in the current document.
Figure 2. Selecting the desired text variable from the menu. Click on the figure to see a larger version.

Before proceeding, I styled the type, which, though actually the content of a text variable, is in all other respects just normal text (Figure 3). It's not possible to adjust individual characters in a text variable, but I could style the entire word or phrase.
Figure 3. Text variables are simply text and can be formatted just like plain text.

Making a duplicate of the text frame through copy and paste, I positioned the copy directly beneath the original, and then flipped it vertically with Object > Transform > Flip Vertical (Figure 4). The result was a mirrored image of my client’s nom de guerre.
Figure 4. A mirror image, both text frames contain the same text variable.

Leaving the first copy a solid color, I filled the second with a black-to-white gradient, rotated 90 degrees. Then I used Object > Transform > Shear to shear, or skew, the lower text frame 60-degrees horizontally. The result was my client’s cast shadow (Figure 5).
Figure 5. After filling with a gradient and shearing, I have a workable cast shadow.

Of course, that would only work if my client were standing on a white background. If not, then even a half-blind production manager would notice that the shadow doesn’t fade into the background (Figure 6).
Figure 6. The gradient cast shadow doesn’t look so hot when the background colors differ.

For better compatibility in any setting, I changed the fill of the shadow text back to solid black, and then used a trick I picked up working another case. Object > Effect > Gradient Feather in InDesign CS3 and CS4 creates true transparency in the form of a gradient rather than a simple solid-to-solid faux transparency. Figure 7 shows the settings I used, and Figure 8 is the result.
Figure 7. Setting a gradient feather effect. Click on the figure to see a larger version.

Figure 8. A real cast shadow, interacting with its background.

Just for good measure, I also set the blending mode of the text to Multiply via the Effects panel.
After a quick call to Ms. Mystery, I packed up my document and hailed a Library panel taxi back to my office. It was time to give the client what she paid for -- after she gave me the last piece of the mystery, of course.
Solving Ms. Mystery’s Variable
She was waiting for me when I got back to the office. I laid out all the steps until there was a shadow on the floor in front of her, cast by the light filtering through the glass of my office door from the hallway ceiling lights. Except the shadow looked nothing like her.
“It isn’t mine,” she said quietly.
“Nope, “ I agreed. I didn’t say anything else; I didn’t need to. She knew what was required to complete the job, and only she could provide it. The tense silence stretched on like a workday in a pre-press shop when the imagesetter is down for repairs. How badly did she want her cast shadow?
“It’s Registration,” she murmured. “My name is Registration. Miss.”
I nodded. That’s what I’d been waiting for -- her real name.
I went back to Type > Text Variables > Define, but this time I selected “Client” from the list of text variables and pressed the secret code button that would enable me to finally wrap up this case: Edit.
In the Edit Text Variables dialog box I replaced “Mystery” with the client’s real name, “Miss Registration.” I clicked OK, then Done. Instantly both text frames changed to read “Miss Registration” -- the first the client herself, the second her cast shadow.
Micky had said the key was text variables. Storing the client’s name in the text variable definition and then using the text variable itself in the two text frames would make both of them instantly update to reflect changes in the variable definition. I could have created two or three or more other cast shadows -- perhaps corresponding to other light sources -- and they would have all changed simultaneously just by redefining the text variable (Figure 9).
Figure 9. Unlimited copies of the text variable can be used and all can be changed simply by redefining the variable content. Click on the figure to see a larger version.

Miss Registration barely smiled. She must have been glad to have her cast shadow back -- and once she used CMD+G/CTRL+G to group it to herself, it followed her around the room -- but you wouldn’t know it from looking at her unruffled exterior. She was a cool customer, this dame. By way of thanks she merely dipped her chin toward me and slipped out the door, shadow in tow.
Another case solved.











Cast Shadow
At first I didn't know where this subject was going but the :mystery" was solved as soon as I saw the first word in type... good story... a little Sam Spade, Guy Noir, etc. I enjoyed the writing even though it seems like a lot of work for something I might need only once in 5 years... There should be, if not already, a book of techniques like this so they could be looked up.
I appreciate your work however.
Bob Long
The technique is brilliant.
The technique is brilliant. I had to do this for a book cover a couple of years ago. I wish I had the technique then. Now, I will be able to use it!
real cast shadows
Any way to do this in CS2?
great tutorial
If every tutorial was written like this one learning would be so much fun. Thanks for this very creative PI story!!
re: Great Tutorial
Thank you very much, Boleyn! I really appreciate that!
re: real cast shadows
Is there a way to do this in InDesign CS2? Yes and no.
CS2 lacks text variables, so you can't create multiple text objects and have them update from a single change. You also can't fade to true transparency in gradients.
That said, you can achieve the same effect with a little more work. In CS2 create a duplicate of your headline or other text frame and then style it as the cast shadow. Though you can't use a true solid-to-transparent gradient, you can fake it by filling the shadow characters with a black to white gradient and then setting the frame's blending mode to Multiply or Darken. On some backgrounds you'll see ugly halos, but most of the time that should blend very well.
The technique is brilliant.
You flatter me, J Cousin. I'm just glad it will prove useful for you in the future.
Cast Shadow
Thank you, Bob. You're absolutely right: the cast shadow isn't a technique one would use day and day out, but it bugged the heck out of me that, on those rare occassions when I wanted to use a cast shadow in a layout, I couldn't do it natively in InDesign without a lot of work (see the CS2 method in my previous comment).
I'm glad the article was entertaining. I had a real blast writing it!
Cast a shadow
Clever writing. The info was good. I've been using InDesign, but I never had any idea what text variables was for!
Text variables
Exellent
It's very many use of this advice
Clever...
Well aren't you just a clever detective... I mean designer! Cleverly written.
The greatest stature of freedom lies within our imagination.
re:cast shadow
Now that's being creative . . . I love it . . . :-)
David Griffith
david@graphyx.com
www.graphyx.com
Thanks for the tutorial
You would have made Sam Spade proud . . .
Cast shadows
Very nicely done. Thank you.
Thank YOU!
Thank you very much for all the nice comments! I'm so glad you liked this article. Technical writing is often so dry and boring, and I'm glad to see people enjoy it when I get a little weird with it. :-)
thank you...
you had me at buzzing streetlights.
Cast Shadow
I loved the article.
In the future, it would be nice is you stated in which versions of InDesign a particular technique can be used. (I have CS2.)
Looking forward to the next article.
Anne Archbold