CLI export layers not always exists in each file Id

I am making a batch of exports where some .ase files contains:
‘Body’ and ‘Head’ layers,
others ‘Head’, and ‘Lips’ layers.
And others ‘Body’, ‘Head’ and ‘Lips’.

I am using the feature: --layer “Body” --layer “Head” --layer “Lips” --layer “Arms”.
It generates the following result:

{ “frames”: {
“actor_normal_walk_left (Body) 0.ase”: //The file here contains Body and Head

“actor_normal_talk_left 0.ase” //The file here contains Head and Lips

Is there a way to have actor_normal_talk_left (Head) 0.ase? Or in each frame a field the layers that have of the list? like
“rotated”: false,
“layers”,“Head,Lips”

Thank you the options are really great, with this feature I can make a more flexible importer.

Hi @Juan_Pablo, sorry I didn’t quite understand the request, just in case, if you want to customize the filenames in the JSON “frames” field, you can use the --filename-format CLI option, but I’m not sure if that will be useful for your case.

Example:

–batch --trim --shape-padding 1 --sheet-pack
–layer “Body” --layer “Head” --layer “Lips” --layer “Arms”
D:\actor_normal_walk_left.ase
D:\actor_normal_walk_right.ase
D:\actor_normal_walk_up.ase
D:\actor_normal_walk_down.ase
D:\actor_normal_idle_left.ase
D:\actor_normal_idle_right.ase

D:\actor_up_use_left.ase
D:\actor_up_use_right.ase
D:\actor_up_use_up.ase
D:\actor_up_use_down.ase
–sheet D:\actor_sheet.png --data D:\actor_sheet.json

But in the json, I lost the information about layers per ‘frame’ like “sourceLayers”: {“Head”,“Lips”} not all the files have all the layers and I think that confuses the Aseprite process.