I am trying to turn passes on and off via python. But I can't find out how to change the cryptomatte settings:
this is what the info panel shows when I click on Cryptomatte - Object:
bpy.context.scene.use_pass_crypto_object = True
it returns this:
AttributeError: 'Scene' object has no attribute 'use_pass_crypto_object'
so I tried each of these lines, but none of them work:
bpy.context.scene.view_layers["View Layer"].use_pass_crypto_object = False bpy.context.scene.render.use_pass_crypto_object = False bpy.context.scene.use_pass_crypto_object = False
This one doesnt throw an error, but also does nothing, and it is not a UI refresh issue:
bpy.context.scene.cycles.pass_crypto_accurate = False
Does somebody know how to access it? Thanks!