Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Oct 31, 2017 Oct 31, 2017

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

TOPICS
Actions and scripting
548
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Oct 31, 2017 Oct 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); }

    }

Translate
Adobe
People's Champ ,
Oct 31, 2017 Oct 31, 2017
LATEST

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

    }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines