Highlighted

How to resolve the error "Cannot set property videoFrameRate" when changing frameRate using Script?

Participant ,
Jul 14, 2020

Copy link to clipboard

Copied

Hi,

I used to change all of the sequence's frame rate in premiere pro using this following script lines by extendscript toolkit.

var currentSettings = app.project.sequences[0].getSettings();
currentSettings.videoFrameRate = (1/60);
app.project.sequences[0].setSettings(currentSettings);

I just simplified the code out of for loop. By this code first sequence item in project file should change it's framerate to 60 fps. But it throws me an error says "Cannot set property videoFrameRate" it was working some days ago. The error is happening on second line. It didn't assigning value to the frameRate of collected settings. I didn't updated the premiere. But now it's not working. What should I do to make it work again?

 

Premiere Version : 14.3.0

 

Thank you.

Topics

Error or problem, How to, SDK

Views

51

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

How to resolve the error "Cannot set property videoFrameRate" when changing frameRate using Script?

Participant ,
Jul 14, 2020

Copy link to clipboard

Copied

Hi,

I used to change all of the sequence's frame rate in premiere pro using this following script lines by extendscript toolkit.

var currentSettings = app.project.sequences[0].getSettings();
currentSettings.videoFrameRate = (1/60);
app.project.sequences[0].setSettings(currentSettings);

I just simplified the code out of for loop. By this code first sequence item in project file should change it's framerate to 60 fps. But it throws me an error says "Cannot set property videoFrameRate" it was working some days ago. The error is happening on second line. It didn't assigning value to the frameRate of collected settings. I didn't updated the premiere. But now it's not working. What should I do to make it work again?

 

Premiere Version : 14.3.0

 

Thank you.

Topics

Error or problem, How to, SDK

Views

52

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
bbb_999 LATEST
Adobe Employee ,
Jul 15, 2020

Copy link to clipboard

Copied

We have an open bug against that; DVAPR-4223032.

Also, in the snippet you provide, you're attempting to set videoFrameRate (a Time object) to a floating point number, which can't work; I think you'd want to set currentSettings.videoFrameRate.seconds.

[Still won't work until we fix the bug; I'll keep this thread informed of our progress.]

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
Reply
Loading...