Before writing a single note of music, and even before the spotting session, I find it best to sit down with the director and just listen to him or her talk about the film - what they're trying to say, what they want the audience to understand or believe, and a thousand other similar questions. The director has most likely been living with the film for years before a composer is attached, and so the director's inclinations, desires, and understanding of the film are paramount.