I want to achieve the following: I have a more or less complex but flat mesh without much details representing the hull of an office building. I want to add details like windows, blinds and other structures by using geometry nodes (maybe there are other ways, but I use this as well as a project to learn a bit about GNs). Up to now I managed to place a grid at the hull where the grid instances are aligned to faces' normals by the help of the "Align Euler to Vector". As a more simple example see the screenshot of the same node setup applied to a cube:
The cube represents the hull of the building, the little rectangles at the faces of the code will be the instances of a prototype window in the future.
The corresponding node setup looks like this:
Wheat is wrong in this setup is the alignment of the rectangles at the "x" faces (red axis) which are upward where I want to have them horizontally rotated.
How can I achieve this?: rectangular prototype "window" aligned to cube face normals and all oriented horizontally on x/y faces.
File with cube and node setup: Blender file on MS OneDrive