dial it in
Mechanics tune engines by dialing in timing precisely
To set up everything completely, precisely, and perfectly. Usually relating to something mechanical or creative. The phrase comes from tuning engines. Mechanics set contact points for the electrical system of the engine and then "dial in" the timing so it will run perfectly.