Merci pour votre réponse.
Est-ce que comme ça cela convient ?
The way you have set up the Expressions and the Essential Graphics Panel (EGP) is what's causing your issue. You need only ONE Checkbox Control to serve both layers (nested comps). And of course, it is this Checkbox Control that is placed into the EGP.
I suggest you delete both checkboxes and the Expressions and start afresh because it looks like you need to have a better grasp on organizing the setup for Common Properties that will be placed into the EGP. A Common Property is a property used/shared by more than one property.
After deleting the two Checkboxes and Expressions, create a Null Object and name it, "Controller Layer".
Apply a Checkbox Expression Control to this Null.
In the first layer/nested comp, apply this Expression to the Opacity Property -
// check Checkbox for its on-off switch and if it is ON ...
if(thisComp.layer("Controller Layer ").effect("Checkbox Control")(1)==1)
// if Checkbox is on then set Opacity value to 100
{100}
// if Checkbox is off then set Opacity value to 0
else {0}
For the second layer/nested comp, use this Expression. This Expression is similar to the one above except that the values are reversed so that if the Checbox is on then the Opacity value is zero and vice versa.
// check Checkbox for its on-off switch and if it is OFF ...
if(thisComp.layer("Controller Layer ").effect("Checkbox Control")(1)==0)
// if Checkbox is off then set Opacity value to 100
{100}
// if Checkbox is on then set Opacity value to 0
else {0}
-----------------------------------------------------------------------------
By organizing your Common Properties onto an independent layer, it becomes much easier to construct relationships between properties and the Expressions referencing layers and their properties can be easily re-used with a simple copy-paste. HTH
HTH