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?
1 Correct answer
There will be no permanency: scratch disks vary by project.
This works, today:
var result = app.setScratchDiskPath('/Users/bbb/Desktop/scratch', ScratchDiskType.FirstAutoSaveFolder);
Copy link to clipboard
Copied
I confirm, it seems to be broken in 12.0 (tested on Win7-64).
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?
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.
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).
Copy link to clipboard
Copied
'Fatal' might overstate the case somewhat, but to set scratch disks, yes.
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).
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);
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);
Copy link to clipboard
Copied
> 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