I'm trying to get a list of currently activated render passes for a view layer.
For a scene 'Scene' and a view layer labelled 'my_vl', I can query individual pass status by returning True or False (e.g. the normal pass) like this:
bpy.data.scenes['Scene'].view_layers['my_vl'].use_pass_normal
or
bpy.context.view_layer.use_pass_normal
But is there a way to return a list of activated passes?
(I assume the Render Layers compositing node queries the passes to activate its outputs, but I can't figure out how.)
I found this update_render_passes method, but I'm not familiar with its purpose or useage:
bpy.context.view_layer.update_render_passes()
..and I get nothing in the console after running it as above.