MemberIds of group returns in different order
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
Yesterday I noticed something strange, at first I thought it was a dynamo custom node thing, but I did some testing yesterday evening and I think that's not the case. Hence me posting here, to consult your expertise.
So, what's the subject?
I'm obtaining all members of a group, nothing strange here. But I thought the order in which this return is given would always be the same, which to my surprise isn't.
So if I test a group, get those members, list[1] would be a door. Checking the same grouptype (no excluded etcetc) returns list[1] wall.
Doing this on a large scale projects returns the same scattered results.
So two questions I guess:
1. how do I ensure that the order is always the same?
2. how do I prevent this from happening?
3. (or how can I get an element in the group that is always the same for all the other groups I check: example: I want 'door' as result for each group; and if there are more doors, the first in the list for example (so I can't filter on 'door' etc))
All this typing is a bit blurry obviously so check this screencast, which shows python but the coding etc is all there, nothing to fancy. It does address a custom node but that part can be ignored (the issue is already narrowed down).
BUT it does show the different list order returns. pfff I'm puzzled.