Made a script to display the total number of non-empty cels from visible layers. Or, in naive terms, the total frame count.
It’s ugly but it works.
-- Made 2021/01/17 00:32-02:14 by Unknow0059. For version of commit 9f88508 and higher.
tally = 0
for index, layer in ipairs(app.activeSprite.layers) do
if layer.isVisible then
for index, cel in ipairs(layer.cels) do
if not cel.image:isEmpty() then
tally = tally + 1
end
end
end
end
app.alert(tostring(tally))