How to Translate/Move the none active layer?

,

It’s a mystery for me why this method doesn’t work when the layer is inactive?
The Layer object is explicitly defined, but that doesn’t work.
In addition, if several layers are selected, then they all move

One thing that I notice is translate is asynchronous, but you’re not awaiting its return.

1 Like

It does not change anything

I’m ready to accept it and activate the layer (it’s slower), but why do several selected layers move when only one is declared?
Perhaps the CEP/ExtendScript is not so legacy? :grinning: There it works predictably and quickly