To present the affine variational principle I start from typical (metric) variational formulation of gravity for Hilbert and scalar fields lagrangians and go step by step to an affine case. Then I give a general recipe for a transformation from a metric picture to an affine one and after that I apply given procedure to a few examples.