c++ app for generating point-wise scripts