Copy link to clipboard
Copied
I want to know Photoshop document has timeline animation using JSX script.
Is there any way to get this information?
test this )
function has_timeline()
{
try {
var r = new ActionReference();
r.putProperty(charIDToTypeID('Prpr'), stringIDToTypeID('documentTimelineSettings'));
r.putClass(stringIDToTypeID('timeline'));
try { executeActionGet(r); } catch (e) { return false; }
return true;
}
catch (e) { alert(e); }
}
Copy link to clipboard
Copied
test this )
function has_timeline()
{
try {
var r = new ActionReference();
r.putProperty(charIDToTypeID('Prpr'), stringIDToTypeID('documentTimelineSettings'));
r.putClass(stringIDToTypeID('timeline'));
try { executeActionGet(r); } catch (e) { return false; }
return true;
}
catch (e) { alert(e); }
}