The man stood on the scaffolding to paint the house.
A man on scaffolding is painting a house.