Skip to main content
Participant
April 25, 2020
Question

jsfl for setting playback range?

  • April 25, 2020
  • 0 replies
  • 213 views

I have a cep that calls into js. I'd like to set the playback range to match to editorial's idea of the frame range for the shot. I need to write this function:

 

 

function setFrameRange(
    aStartFrame,
    anEndFrame) {

        // fl.getDocumentDOM().getTimeline().startFrame = aStartFrame;
        // fl.getDocumentDOM().getTimeline().duration = anEndFrame - aStartFrame
        return true;
}

 

but seems like all of the timeline variables that revolve around playback are read-only. What's the right way to do this?

 

Thanks in advance.

 

MO

This topic is closed to new replies. Start a new post to keep the conversation going.