Skip to main content
Participant
January 22, 2025
Question

Photoshop UXP - Timeline and Frames Access

  • January 22, 2025
  • 1 reply
  • 166 views

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

1 reply

Community Manager
January 27, 2025

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

*(If you mention me with an @, like @Aleke, I’ll get a notification and can respond faster.)*