Override graphics settings on curtain panels

EDIT: Issue solved. Later I noticed that the curtain panels were composed by Generic Models with multi layers. The script indeed applied the override to the lower layer model but it was not visible due to the upper layer.

Hi there,
I’m trying to set GFX override of elements in view for curtain panels via Dynamo but I’m getting troubles: the script runs fine and returns no errors but the elements in view are not changed unless I isolate the elements.
If I run the same script in various other elements of different categories (both system and loaded families) works fine.
See attached pictures and Dyn file.
Thanks in advance for your support.

Paolo

DYN SCRIPT


RESULT IN VIEW

RESULT IN VIEW WHEN ISOLATED

ELEMENT OVERRIDE REVIT UI

SAMPLE OF OVERRIDE SETTINGS WHEN APPLIED DIRECTLY THROUGH REVIT UI

EDIT: Issue solved. Later I noticed that the curtain panels were composed by Generic Models with multi layers. The script indeed applied the override to the lower layer model but it was not visible due to the upper layer.