Assigning scale of X axis to Y axis for all selected objects *individually*

Hey, guys!

I’d love to have someone help me out to figure out a code snippet that would take all selected objects and to each assigned same X and Y values. So, let’s say take individually each selected object, grab scale of X axis and apply that to Y axis of the object in question. That’s it. I want X and Y to be identical for all objects. But every object in the scene has different X/Y proportions. Z should stay the same as it’s for all objects individually, with whatever value they already have.

Thank you!

image

object.scale.y = object.scale.x
1 Like