Indesign Script for setting Object Layer Options

Hi Scripter pros,

For Indesign, I’m looking for a script that can set two objects with .psd files in them, to automatically set a specific layer active without opening the Object import Options.

The object behind would active the “shadow” layer and deactivate the “car” layer. And set it to multiply.

The object on top would active the “car” layer and deactivate the “shadow” layer.

And if possible, have it work if both objects are grouped. But if not possible have it work if both objects were selected.

Thanks in advance!