Hello. I’m still a beginner with Dynamo and had a question that came up at the office today: Is there a way to sort a list of selected objects by the order an object was selected? I understand how to filter an object and sort a list by id, name, etc. However, I have a condition (in the Python code) where I’m allowing the user to manually select objects desired. Is there a way to generate a list of the objects manually selected and keep the same order the objects were selected?
Not trying to high-jack this thread as I work with aperez and he actually asked the question for me. I tried both the Rhythm and Springs packages and neither one does exactly as needed. They both do keep the selection order, however they utilize the PickObject method where the highlight disappears when the next object is selected. Ultimately, what I would like is to utilize the PickObjects method where the objects stay highlighted after selection. This is so the user knows which objects they have already selected to keep from selecting an object twice.
@chuongmep , I tried Your node, but something goes wrong. After choosing one surface, node ends its work. It look like I am not able to pick more than one surface. Should I install some extra packages to try it?
@c.poupin this python script works properly! Thank You for solution!