Attach touching objects to element.

Hi all.

In the current project I am working on i've hit a modelling crisis! Please see the attached file as a reference.

Basically I was wondering if there is a script that will do the following. Take the object and create elements from objects that are touching. The reason being, each framework needs to have a different timber colour from three variations in a random pattern. I wanted to use the material by element modifier to achieve this, but it's not ready for that.

I will have to remodel them, or edit the current mesh to break it up in to frames and then attach them together. This will be very time consuming as there are 3 different towers with different panel configurations! I need each panel to consist of only the verticals and horizontals that are touching.

If anyone can help, I'd really appreciate it. I don't even know if this is possible as at the moment each horizontal and vertical beam is a different element.

panel_test.max1.95 MB