Insert as smart object and wait for "done", then send a script

This is demo 3 for Photopea Live Messaging API
Press the button to place an image as a smart object. Translate the active layer after loading.