 Principal photography began in April 2006 and ended in July 2006 . Because of the sequence setting , the live action scenes are filmed in New York City . However , shooting in New York became problematic as it was in a " constant state of new stores , scaffolding and renovation " . 
