The problem is that I don't want to place a specific object, but an object by name, defined by a variable. So I'm thinking these solutions:
1. If it is possible, to show the next layout after the object is drawn.
2. To make a global layer, create the object at this global layer and then change layout. But even if my layer is global, the object is being destroyed at the end of the layout.
3. To place an object (without image) on the global layer and use "load image from url" in order to choose as image a url of another object.