• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Programmatically setting scratch disks in Premiere....changed?

New Here ,
Dec 01, 2017 Dec 01, 2017

Copy link to clipboard

Copied

Has something changed in the extendscript/premiere sdk regarding setting of scratch disks? We've had code in place for the last few years that has worked well, but broke with Premiere 12.0.0.

This worked prior to 12.0.0.....(where <..._FolderPath> is our variable representing the location to this that particular scratch disk will be assigned.)

//Assign the variables to the currently open instance of Premiere's preferences and project variables with ExtendScript commands:

app.setScratchDiskPath(FirstVideoCaptureFolder_FolderPath,"BE.Prefs.ScratchDisks.FirstVideoCaptureFolder");

app.setScratchDiskPath(FirstAudioCaptureFolder_FolderPath,"BE::kPrefsScratchDisksFirstAudioCaptureFolder");

app.setScratchDiskPath(FirstVideoPreviewFolder_FolderPath,"BE::kPrefsScratchDisksFirstVideoPreviewFolder");

app.setScratchDiskPath(FirstAudioPreviewFolder_FolderPath,"BE::kPrefsScratchDisksFirstAudioPreviewFolder");

app.setScratchDiskPath(FirstAutoSaveFolder_FolderPath,"BE::kPrefsScratchDisksFirstAutoSaveFolder");

I'm wondering if the names for the disks (for which there appears to be a few more new locations in the Project manager/Scratch disk dialog) have changed or if the setting command has changed?

TOPICS
SDK

Views

1.2K

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
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jun 05, 2018 Jun 05, 2018

There will be no permanency: scratch disks vary by project.

This works, today:

var result = app.setScratchDiskPath('/Users/bbb/Desktop/scratch', ScratchDiskType.FirstAutoSaveFolder);

Votes

Translate

Translate
Engaged ,
Dec 02, 2017 Dec 02, 2017

Copy link to clipboard

Copied

I confirm, it seems to be broken in 12.0 (tested on Win7-64).

Votes

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
community guidelines
New Here ,
Dec 04, 2017 Dec 04, 2017

Copy link to clipboard

Copied

We have around 50 CC licenses using apps we wrote to handle project management that are now inoperative.

Bruce, are you there? Can you tell us what has changed/broke?

Votes

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
community guidelines
Adobe Employee ,
Dec 07, 2017 Dec 07, 2017

Copy link to clipboard

Copied

I am 'here' (on sabbatical).

No, I cannot tell you what broke, though as Erik confirms, there seems to be a problem.

I'll provide more info as it becomes available.

Votes

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
community guidelines
New Here ,
Dec 07, 2017 Dec 07, 2017

Copy link to clipboard

Copied

Thanks Bruce. If there's someone else I should be bothering to find a

fix (so you can continue sabat-ing) please let me know. I appreciate the

pingback.

Whatever it is seems pretty fatal for anyone using the SDK on Premiere

right now (including us).

Votes

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
community guidelines
Adobe Employee ,
Dec 07, 2017 Dec 07, 2017

Copy link to clipboard

Copied

'Fatal' might overstate the case somewhat, but to set scratch disks, yes.

Votes

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
community guidelines
Participant ,
Jun 05, 2018 Jun 05, 2018

Copy link to clipboard

Copied

any word on this?

is there a fix?

I'm looking for a solution to making setting scratch disk preferences for renders permanent (i.e. like FCP).

Votes

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
community guidelines
Adobe Employee ,
Jun 05, 2018 Jun 05, 2018

Copy link to clipboard

Copied

There will be no permanency: scratch disks vary by project.

This works, today:

var result = app.setScratchDiskPath('/Users/bbb/Desktop/scratch', ScratchDiskType.FirstAutoSaveFolder);

Votes

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
community guidelines
Participant ,
Jun 05, 2018 Jun 05, 2018

Copy link to clipboard

Copied

does that code affect just the Auto Saves?

can it be change to below to just affect the Video Previews?

Thanks!

var result = app.setScratchDiskPath('/Users/bbb/Desktop/scratch', ScratchDiskType.FirstVideoPreviewFolder);

Votes

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
community guidelines
Adobe Employee ,
Jun 05, 2018 Jun 05, 2018

Copy link to clipboard

Copied

LATEST
> can it be change to below to just affect the Video Previews?

Yes; any of the values for ScratchDiskType will work. From the ESTK Data Browser:

ScratchDiskType.FirstAudioCaptureFolder

ScratchDiskType.FirstAudioPreviewFolder

ScratchDiskType.FirstAutoSaveFolder

ScratchDiskType.FirstCapsuleMediaFolder

ScratchDiskType.FirstCCLibrariesFolder

ScratchDiskType.FirstVideoCaptureFolder

ScratchDiskType.FirstVideoPreviewFolder

Votes

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
community guidelines