So i have these variables that search for the active object's coordinates.
obj = bpy.context.scene.objects.active
Xrot = obj.rotation_euler.x
Yrot = obj.rotation_euler.x
Zrot = obj.rotation_euler.x
eul = mathutils.Euler((Xrot, float(Yrot), Zrot), 'XYZ') # <--- Does not print coordinates
mat_rot = eul.to_matrix() #Convert rotations to matrix
mat = mat_rot.to_4x4() #Lets turn this into a grid!
print(mat)
However the "eul' variable does not read out the coordinates. If I also try using float on the Xrot for Zrot variables then i will get a "too many arguments" error.
I've attempted to use "int" aswell but no luck.
mat_rot = obj.rotation_euler.to_matrix()
(assuming you dont want to set each to the x rotation) $\endgroup$