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

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

New Here ,
Dec 01, 2017 Dec 01, 2017

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
1.7K
Translate
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);

Translate
Engaged ,
Dec 02, 2017 Dec 02, 2017

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

Translate
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

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?

Translate
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

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.

Translate
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

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

Translate
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

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

Translate
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

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

Translate
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

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

This works, today:

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

Translate
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

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);

Translate
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
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

Translate
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