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

Photoshop UXP - Timeline and Frames Access

New Here ,
Jan 21, 2025 Jan 21, 2025

Copy link to clipboard

Copied

I have the following Code that works fine in an old style .jsx file:

 

function getFrameCount() {
    var r = new ActionReference();
    r.putProperty(charIDToTypeID('Prpr'), stringIDToTypeID('frameCount'));
    r.putClass(stringIDToTypeID('animationClass'));
    var ret = executeActionGet(r);
    return ret.getInteger(stringIDToTypeID('frameCount'));
}

 

I've been attempting all day to either do this natively within UXP or to figure out how to call a working .jsx script from a button in my UXP plugin.  

 

I can't find a way to get timeline queries working in UXP and would love some guidance

TOPICS
macOS , SDK , Windows

Views

32

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
Adobe
Adobe Employee ,
Jan 27, 2025 Jan 27, 2025

Copy link to clipboard

Copied

LATEST

Hey @Tom33885194gnyg!

I recommend checking out the Creative Cloud Developer Forums.

It's a great place to connect with other developers, ask questions, and offer help. You might find better answers to your question there.

Thanks!

Alek

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