It should probably be added to or called from a stand-alone camera script.