Why is there no option to copy full data path of the indirect only check in collections? It's possible for "selectable", "disable in renders" but not for "holdout" and "indirect only".
bpy.data.collections["Collection name"].hide_select
- this is a full data path for "selectable"
When you hover your mouse over "indirect only" it shows this:
So the full data path would be:
bpy.data.collections["Collection name"].indirect_only
but it isn't as it doesn't work.
I need it for using in this addon: https://blendermarket.com/products/renderstacknode to set it as a property:
Set collection as Indirect Only (ie. = Shadowcatcher) through python? - in this thread someone proposed using the code below:
bpy.context.view_layer.active_layer_collection.indirect_only
And it works but it doesn't take into account the name of the collection, it just uses the active collection which doesn't satisfy me as it would add much manual work to the process.