Skip to main content
Adirai Maji
Inspiring
July 15, 2020
Answered

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

  • July 15, 2020
  • 1 reply
  • 982 views

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.

This topic has been closed for replies.
Correct answer Bruce Bullis

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.]

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
July 15, 2020

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.]

Participating Frequently
March 1, 2021

Hello Bruce! 

Any news on this issue? We are really looking forward to the decision and forcing clients to turn off the "New World", this causes many problems in the work of other extensions.

Bruce Bullis
Legend
March 1, 2021

Sorry, no progress to report.