During the development stage, it is not uncommon for writers to try to attach a producer or a director to the project. At times, writers work with producers and/or directors while developing the pitch. Sometimes writers (or a writer-producer or writer-director team) go and pitch their idea to studios or networks in hope to be picked up by one and be paid to write the pilot for the show or script for the film. Many people have written about selling scripts and ideas to studios and networks, so if you are interested in this subject, you can easily find fairly solid advice online.