Timeline and Action Manager

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Kukurykus, Tom, xbytor

Vlad
Posts: 7
Joined: Wed May 23, 2018 9:10 am

Timeline and Action Manager

Post by Vlad »

Hi,

I've been playing with Action Manager recently :shock: and got stuck (not really but anyway).
I can't figure out where to get the 'timeline' object to inspect it. I inspected the whole application class but haven't found anything related to the timeline. Am I missing something? I found on Adobe forum the list of timeline properties so now I can use them.
But I really wanted to know how to dig them up from the beginning. :?

Code: Select all

// time
// currentFrame
// documentTimelineSettings
// duration
// enabled
// frameCount
// frameRate
// hasMotion
// workInTime
// workOutTime
    var r = new ActionReference();
    r.putProperty(charIDToTypeID('Prpr'), s2t('enabled'));
    r.putClass(s2t('timeline'));
    var ret = executeActionGet(r);

I've tried the code below to no avail.

Code: Select all

    
    // ERROR CODE
    var r = new ActionReference();
    r.putClass(s2t('timeline'));
    var ret = executeActionGet(r);