the problem for me is once I bake the project component, all the surfaces will be baked into the same layer, I’m wondering how I can bake them in the same layers they were before,
I don’t have Elefront installed so used ObjDet(Object Details) to get the layer names, then appended ‘_NEW’ to them for Bake to layer (my own Python code) so I could delete them by layer without destroying the originals.
PS: I like to share a much simpler version of what I’m actually working on to make it easier for everyone, as I modeled this really fast I didn’t pay attention to the alignment of the surfaces.
Grasshopper can fix that.
Note that you can skip the Concat ‘_NEW’ in my code so it bakes to the original layers, but if you do that, you should remove the DelAll(Delete by layer) component to avoid deleting your surfaces. Also note that much of my code was just sorting the surfaces by ‘Z’ and moving them all to the “ground floor”, aligned on their Area center points for the MoveD cluster.