LOS ANGELES — Jordan Yospe had some notes on the script for “The 28th Amendment,” a thriller about a president and a rogue Special Forces agent on the run. Some of the White House scenes were not detailed enough, Mr. Yospe thought. And, he suggested, the heroes should stop for a snack while they were on the lam.

“There’s no fast-food scene at all, but they have to eat,” he said.

Mr. Yospe was not a screenwriter, not a producer, not even a studio executive. No, Mr. Yospe was a lawyer with the firm Manatt, Phelps & Phillips. He was meeting with the writer-producer Roberto Orci, who co-wrote “Transformers” and “Star Trek,” to talk about how to include brands in “The 28th Amendment.”

In the past, studio executives made deals to include products in films. Now, with the help of people like Mr. Yospe, writers and producers themselves are cutting the deals often before the movie is cast or the script is fully shaped, like “The 28th Amendment,” which Warner Brothers has agreed to distribute.

Now, having Campbell’s Soup or Chrysler associated with your project can be nearly as important to your pitch as signing Tom Cruise.