Looking for python command work-around for Update Layer Membership bug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In Maya 2018.6, there seems to be a bug where membership of a layer collection will not update unless the user toggles the "collection filters" type back and forth. A very simple example is this. (Using the Render Setup window)
1. Create a new layer
2. Create a new collection.
3. Collection Filters = Transforms, Include = pS*2
4. Create a polysphere (pSphere1 by default)
5. Rename pSphere1 to pSphere2.
Now hit "Select All" in the collection. It does not select pSphere2! And there is nothing "normal" that you can do about it. The eyeball icon does not have a red border, so you cannot easily force the layer to update it's layer membership (I'm looking for python command that does that). All you can do is toggle the Collection Filters from "Transforms" to something else and then back to "Transforms" again. This wakes up the membership and now "Select All" will select pSphere2 as it should.
I'm assuming this bug has been reported, but either way, I would like a sane work-around for this bug. Is there a python command that wakes up a layer and tells it to refresh it's membership?