I have facade elements that I want to color based on an image.
I have seen tutorials en searched but it still doesn’t work.
The main problem is: the facade isn’t neatly divided into a regular X-Y grid.
So, what I need is a colorpicker that doesn’t divide the image into pixels and distributres them.
I need to pixel the image and than pick a color at a UV-parameter.
in the attached screenshot:
1: surface at the facade where every point is the centroid of the facade-element. (Surface.UVParameterAtPoint)
2: the image
3: the result.
Since there are not so many nodes dealing with images I’m stuck.
How do I map the correct color onto the correct facade-element?
I think you’d have to use the same “coordinate system” between your panels and your image in order to map to the right pixels. Set up a point grid on your facade to match where you’ll be selecting pixel colors from. Then just use Image.Pixels to get the color of each pixel and map it back to the panel intersecting the matching point.
If you want I can Wetransfer the revit file too.
I purged everything exept for the panels in this facade and the grid but the rvt is still bigger than I’m allowed to upload.
Now I created 12 walls and a big wall to get the same ratio and location.
Script and file with the elements are attached. In the script some explaination in textnotes.
All nodes are ootb.
Now back to the main task of mapping images onto facades…