Unreal Engine Color Correct Region issue

Hello,

I am creating a Color Correct Region and adding actors to Per Actor CC List:

color_correct_region = unreal.EditorLevelLibrary.spawn_actor_from_class(
    actor_class=unreal.ColorCorrectionRegion,
    location=unreal.Vector(0.0, 0.0, 0.0), )

color_correct_region.set_editor_property('enable_per_actor_cc', True)

actors_to_effect = scene.get_actors_by_name('MyGeometry')
color_correct_region.set_editor_property('affected_actors', actors_to_effect)

I am also setting custom_depth_stencil_value for each actor added to the Per Actor list. The resulting CC Region actor has a list of included objects but it is not working, e.g. it affects all objects in the UE scene.

If I use the picker tool in CC Region (Pick Actor From Scene) and manually pick any object that is already in the list, the Per Actor list works. And I need to pick only one object, the rest of the objects will work as well.

I have no idea why it’s not working before using the picker tool and what picker tool is changing. The only thing I noticed, is that before the picker tool, the attribute custom_depth_stencil_value is locked in UI, and it becomes unlocked after. But I don’t know how to unlock attributes with Python to check if it helps.

UE 5.3