we use mask to change the selectable status associated with a particular object type to valid or invalid in grip.Regardless of whether the object has been hidden, how to only select all objects in the layer 1 and layer 3 and make it all displayed in grip.
It's a long time since I used GRIP. So this is just a hint:
$$ Search for POINTs on layer 1
BLANK/ALL $$ Blank all
IFTHEN/&TYPE(ELE) == 2 AND &LAYER(ELE) == 1 $$ if point on layer 1
UNBLANK/ELE $$ Unblank point