single script for object coordinate generation