[LDCad] Selecte same height - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html) +--- Thread: [LDCad] Selecte same height (/thread-26153.html) |
Selecte same height - Jaco van der Molen - 2022-03-23 Hi all, In LDCad it is possible to select a part and then select same part, same part and color, same color, same step... But now I am looking for a way to select all parts that are at the same height, i.e. y-coordinate. @Roland: I'd like to suggest that for a next version? For now: can this be done with a script? Thanks! Jaco RE: Selecte same height - Roland Melkert - 2022-03-23 (2022-03-23, 6:45)Jaco van der Molen Wrote: For now: can this be done with a script? This can be done in script. You can get the Y value from the current selection. Then loop trough all parts adding the ones with the same Y coordinate. RE: Selecte same height - Jaco van der Molen - 2022-03-24 (2022-03-23, 19:15)Roland Melkert Wrote: This can be done in script. I thought as much. Alas, I have no clue how to make such a script. So either can someone point me in the right direction or is someone willing to code this script? Much apprieciated! RE: Selecte same height - Stefan Frenz - 2022-03-24 (2022-03-24, 6:09)Jaco van der Molen Wrote: is someone willing to code this script? I am. Quick-and-dirty without rounding or user-interaction. Just selecting all parts with the same Y value as the exactly one selected part. Code: function select_same_y() RE: Selecte same height - Jaco van der Molen - 2022-03-24 (2022-03-24, 15:19)Stefan Frenz Wrote: I am. Quick-and-dirty without rounding or user-interaction. Just selecting all parts with the same Y value as the exactly one selected part. Thank you, this is exactly what I need for now with the model I am working on. |