Learning Affordances in Object-Centric Generative Models