Julianne Hough Joins 'Dancing With The Stars' Judging Panel

Jessica Alba Landed 'Spy Kids' Role Because Of Her Daughter

August 2nd, 2011 12:41pm EDT

Jessica Alba Jessica Alba has daughter Honor to thank for landing her latest role - Robert Rodriguez wrote a part for her in his family film after seeing the actress multi-task while changing a diaper.

Alba re-teamed with her Sin City director Rodriguez on action movie Machete and impressed him so much while tending to her daughter that he was inspired to create a character for her in Spy Kids: All the Time in the World.

She tells E! Online, "When I became a mother, I talked to him about getting back to work and how does he do it, how does he juggle spending time with his family (and his five children) but also focus on his career because he's done it so well."

"So when I was shooting Machete, him seeing me trying to change my kid's diaper and take conference calls and I'm on the set trying to learn lines and trying to do a million things at once kind of inspired him to write the character that I play - a woman who's trying to do a millions things at once."

The Fantastic Four beauty is expecting her second child with husband Cash Warren in September.

Spy Kids

Photo Credits: PR Photos , The Weinstein Company Inc. All Rights