Message 1 of 2
How to check if an render setup layer override is applied to object X?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I need to parse all layers and check if an attribute of some objects is set-
As layer overrides can change these values, I need to parse all layers if the override is applied.
So far I have this code to get a list of overrides of all layers:
rs = renderSetup.instance()
rLayers = rs.getRenderLayers()
for layer in rLayers:
colList= layer.getCollections()
for col in colList:
overrides=col.getOverrides()
for oride in overrides:
print("override applied to attribute "+oride.attributeName())
But now I need to know if my object is in that layer collection.
I know from the UI interface that you can add objects by its absolute name or by a filter like *myobj*.
But how do I get this information via script?