I have a filter on a layer
"LOCALITY" != 'Queenton'
It just covers up the area outside of the AOI.
I want to connect this to the atlas so that this 'masking' happens as the Atlas moves between Localities.
Is there a way to do something like
"LOCALITY" != '@Atlas' ?
I also tried
"LOCALITY" != '$feature'
I am using the new Clipping in QGIS 3.16 as suggested in Filtering features in other layers of QGIS Atlas to clip some unwanted features but I want the roads, rivers and protected areas (for example) to show but be covered by a translucent grey polygon as below...

- An error occurred when executing the query. The data provider said: OGR[3] error 1: SQL Expression Parsing Error: syntax error, unexpected $undefined. Occurred around : "LOCALITY" != @atlas_feature ^– GeorgeC Aug 29 '23 at 11:31"LOCALITY" not in (attribute(@atlas_feature, 'LOCALITY'))with an else statement that had no symbology. Then in the Atlas clip I had to exclude this layer from clipping. – GeorgeC Aug 30 '23 at 01:50