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

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

Community Beginner ,
Oct 31, 2017 Oct 31, 2017

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?

TOPICS
Actions and scripting

Views

447

Translate

Translate

Report

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

    }

Votes

Translate

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

Copy link to clipboard

Copied

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

    }

Votes

Translate

Translate

Report

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