How to access the number of "variations" and the "index" of the active variation for Generative Fill smart objects?

I’m looking for a way to access the number of variations embedded in a Generative Fill smart object and a way to determine which variation is active, i.e. the active “index”.


const activeLayer = batchPlay([{ "_obj": "get", "_target":{ "_ref": "layer", "_enum": "ordinal", "_value": "targetEnum" } }], { synchronousExecution: true })

I can get a lot of info about the Generative Fill layer. It looks like there are multiple smart objects embedded in this layer, but I can’t determine the index of any of them or which index is currently active and being displayed.

Alchemist has even more info, but still not able to locate the number of variations embedded in the smart object or which index is currently visible.

Alchemist can also capture code for changing which index is being displayed or for deleting an index, but that’s not helpful in determining the number of variations or which one is currently the active index. Photoshop is able to track all this, but I can’t find a way to access this basic info.

Thought I would check with the experts here to see if I’m overlooking something.

It might be a bit too early to play with it. Generative fill is still in Beta. Descriptors might change without warning at any time.

Anyway… maybe you could try JSON property of layer/document… in some configuration, it can see what is inside SO without opening it.