Set Rotation of Multiple Objects to 0 Degrees I want to set the rotation on the x- and y-axis to 0° to multiple objects.

So if object a has x:10°,y:20°,z:30°, and object b has x:40°,y:50°,z:60° they should all have x:0°,y:0°;z:...° after the transformation.

How can I do that?

I already selected all of my objects at a time (pivot point set to individual origins), pressed r for rotation and x to rotate around the x-axis, but then all of my objects rotated for example 10 degrees around the x-axis. But that is not the result that I want. I want every single object to have their rotation set to x:0°, y:0°; z:...°

I am currently working with a particle system, which emits cubes along a path.

When converting the particle system I am left with tons of cubes, which should all have the following rotation properties: x=0, y=0, z=(stays like it is).

If I click on one single cube, I can adjust the rotation value for x, y, (and z) which gives me what I want. But I really do not want to do this for every single object this way. Is there a faster way to change the rotation of multiple objects simultaneously?

I already tried to work with ctrl-c, copy rotation. But as I said, I want the z-axis to be unchanged! This should only affect the x- and y-axis.

(To better understand why I want to do this: You have to look at this like it would be an architecture. You don't want to walk on a tilted floor. It should be even.)







Thank you for your support!
Select via name, zero x and y euler rotations.

Test script. Finds all objects in scene with name starting with "Cube Emitter" and sets the x and y components of Euler rotation to zero.

import bpy

pattern = "Cube Emitter"
#pattern = "Cube"
scene = bpy.context.scene

cubes = [o for o in scene.objects 
        if o.name.startswith(pattern)]

for cube in cubes:
    cube.rotation_euler.x = 0
    cube.rotation_euler.y = 0