Highlighted

jsfl for setting playback range?

New Here ,
Apr 25, 2020

Copy link to clipboard

Copied

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

TOPICS
ActionScript

Views

103

Likes

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

jsfl for setting playback range?

New Here ,
Apr 25, 2020

Copy link to clipboard

Copied

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

TOPICS
ActionScript

Views

104

Likes

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
Apr 25, 2020 0

Have something to add?

Join the conversation