NEW YORK - Robert Pattinson was nearing the end of shooting the last “Twilight” film, concluding a chapter of his life that had picked him out of near obscurity and was preparing to spit him out … where exactly? “Twilight” had made him extravagantly famous, but his next steps were entirely uncertain.“Out of the blue,” he says, came the script for “Cosmopolis” from David Cronenberg, the revered C…