So I guess I would need to fetch the current $selectedObjects[] and feed them into a new array such as $previouslySelectedList[] that will not change when the objects are deselected.
Then in the for loop I would add each object from $previouslySelectedList[] one at a time to the active selection list, run my commands, and then select -d the objects or select -clear them and remove them from the $previouslySelectedList[] and then the loop would continue until it reaches the end of the $selectionList[].
Any info will be appreciated on how to achieve this.
Thanks
Post a Comment