Fix and simplify the Project3D attribute assignment

We were manually assigning two values to the same know, an iterator will do much better here.