Skip to main content
salithan73779666
Participating Frequently
October 31, 2017
Answered

how to identify document has any timeline animation using Photoshop script?

  • October 31, 2017
  • 1 reply
  • 559 views

I want to know Photoshop document has timeline animation using JSX script.
Is there any way to get this information?

Correct answer r-bin

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); }

    }

1 reply

r-binCorrect answer
Legend
October 31, 2017

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); }

    }