-
Notifications
You must be signed in to change notification settings - Fork 560
/
Copy pathindex.html
529 lines (444 loc) · 24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
<!doctype html>
<!--
/*************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2020 Adobe
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file in
* accordance with the terms of the Adobe license agreement accompanying
* it. If you have received this file from a source other than Adobe,
* then your use, modification, or distribution of it requires the prior
* written permission of Adobe.
**************************************************************************/
-->
<html>
<title>PProPanel</title>
<head>
<meta charset="utf-8">
<script src="./ext.js"></script>
<script src="./lib/CSInterface.js"></script>
<script src="./lib/jquery-1.9.1.js"></script>
<script src="./lib/Vulcan.js"></script>
<link id="ppstyle" href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
$(document).ready(function () {
// For functions which require interaction at the JavaScript level, we provide these JQuery-based
// handlers, instead of directly invoking ExtendScript .This gives the JavaScript layer a chance
// to pass data into the ExtendScript layer, and process the results.
$("#copypresets").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
csInterface.evalScript('$._PPP_.getUserName()', myUserNameFunction);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var initPath = 'C:\\Users\\' + username.innerHTML;
var sep = '\\\\';
path = path.replace(/\//g, sep);
} else {
var initPath = '/Users/' + username.innerHTML;
var sep = '/';
}
path = path + sep + 'payloads' + sep + 'Effect\ Presets\ and\ Custom\ Items.prfpset';
var readResult = window.cep.fs.readFile(path);
if (0 == readResult.err) {
// We build a path to the preset, based on the OS user's name.
var addOutPath = '/Documents/Adobe/Premiere\ Pro/22.0/Profile-' + username.innerHTML +
'/Effect\ Presets\ and\ Custom\ Items.prfpset';
var fullOutPath = initPath + addOutPath;
var writeResult = window.cep.fs.writeFile(fullOutPath, readResult.data);
var resultMsg = "";
if (0 == writeResult.err) {
resultMsg = "Successfully copied effect presets from panel to current user configuration.";
} else {
resultMsg = "Failed to copy effect presets.";
}
var postToEventPanel = '$._PPP_.updateEventPanel(\'';
postToEventPanel += resultMsg;
postToEventPanel += '\'';
postToEventPanel += ')';
csInterface.evalScript(postToEventPanel);
}
}
});
$("#toggleproxy").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
csInterface.evalScript('$._PPP_.toggleProxyState()', mySetProxyFunction);
csInterface.evalScript('$._PPP_.getProjectProxySetting()', myGetProxyFunction);
});
$("#checkforums").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
csInterface.openURLInDefaultBrowser("https://forums.adobe.com/community/premiere/sdk");
});
$("#openfolder").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var sep = '\\';
path = path.replace(/\//g, sep);
window.cep.process.createProcess('C:\\Windows\\explorer.exe', path);
} else {
window.cep.process.createProcess('/usr/bin/open', path);
}
}
});
$("#openlogfilefolder").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var userDataPath = csInterface.getSystemPath(SystemPath.USER_DATA);
var justTheFirstBit = userDataPath.split('A');
var actualDestinationPath = justTheFirstBit[0];
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
actualDestinationPath = actualDestinationPath + "AppData/Roaming/Adobe/Premiere Pro/22.0/logs";
var sep = '\\';
actualDestinationPath = actualDestinationPath.replace(/\//g, sep);
window.cep.process.createProcess('C:\\Windows\\explorer.exe', actualDestinationPath);
} else {
actualDestinationPath = actualDestinationPath + "Preferences/Adobe/Premiere Pro/22.0/logs";
window.cep.process.createProcess('/usr/bin/open', actualDestinationPath);
}
}
});
$("#readAPIdocs").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
csInterface.openURLInDefaultBrowser("http://ppro.aenhancers.com");
});
$("#newseqfrompreset").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var sep = '\\\\';
path = path.replace(/\//g, sep);
} else {
var sep = '/';
}
// Build a String to pass the path to the script.
// (Sounds more complicated than it is.)
path = path + sep + 'payloads' + sep + 'PProPanel.sqpreset';
var pre = '$._PPP_.createSequenceFromPreset(\'';
var post = '\'';
var postpost = ')';
var whole_megillah = pre + path + post + postpost;
csInterface.evalScript(whole_megillah);
}
});
$("#renderusingdefaultpreset").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var sep = '\\\\';
path = path.replace(/\//g, sep);
} else {
var sep = '/';
}
// Build a String to pass the path to the script.
// (Sounds more complicated than it is.)
path = path + sep + 'payloads' + sep + 'example.epr';
var pre = '$._PPP_.render(\'';
var post = '\'';
var postpost = ')';
var whole_megillah = pre + path + post + postpost;
csInterface.evalScript(whole_megillah);
}
});
$("#stitchusingdefaultpreset").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var sep = '\\\\';
path = path.replace(/\//g, sep);
} else {
var sep = '/';
}
// Build a String to pass the path to the script.
// (Sounds more complicated than it is.)
path = path + sep + 'payloads' + sep + 'example.epr';
var pre = '$._PPP_.stitch(\'';
var post = '\'';
var postpost = ')';
var whole_megillah = pre + path + post + postpost;
csInterface.evalScript(whole_megillah);
}
});
$("#transcodeexternal").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var sep = '\\\\';
path = path.replace(/\//g, sep);
} else {
var sep = '/';
}
// Build a String to pass the path to the script.
// (Sounds more complicated than it is.)
path = path + sep + 'payloads' + sep + 'example.epr';
var pre = '$._PPP_.transcodeExternal(\'';
var post = '\'';
var postpost = ')';
var whole_megillah = pre + path + post + postpost;
csInterface.evalScript(whole_megillah);
}
});
$("#saveaspng").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var sep = '\\\\';
path = path.replace(/\//g, sep);
} else {
var sep = '/';
}
// Build a String to pass the path to the script.
// (Sounds more complicated than it is.)
path = path + sep + 'payloads' + sep + 'png.epr';
var pre = '$._PPP_.exportCurrentFrameAsPNG(\'';
var post = '\'';
var postpost = ')';
var whole_megillah = pre + path + post + postpost;
csInterface.evalScript(whole_megillah);
}
});
$("#ingest").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var sep = '\\\\';
path = path.replace(/\//g, sep);
} else {
var sep = '/';
}
// Build a String to pass the path to the script.
// (Sounds more complicated than it is.)
path = path + sep + 'payloads' + sep + 'example.epr';
var pre = '$._PPP_.ingestFiles(\'';
var post = '\'';
var postpost = ');';
var whole_megillah = pre + path + post + postpost;
csInterface.evalScript(whole_megillah);
}
});
$("#transcodeusingdefaultpreset").on("click", function (e) {
e.preventDefault();
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var path = csInterface.getSystemPath(SystemPath.EXTENSION);
if (OSVersion) {
// The path always comes back with '/' path separators. Windows needs '\\'.
if (OSVersion.indexOf("Windows") >= 0) {
var sep = '\\\\';
path = path.replace(/\//g, sep);
} else {
var sep = '/';
}
// Build a String to pass the path to the script.
// (Sounds more complicated than it is.)
path = path + sep + 'payloads' + sep + 'example.epr';
var pre = '$._PPP_.transcode(\'';
var post = '\'';
var postpost = ')';
var whole_megillah = pre + path + post + postpost;
csInterface.evalScript(whole_megillah);
}
});
});
</script>
</head>
<body onLoad="onLoaded()">
<a href="javascript:history.go(0)">Refresh panel</a>
<p id="username">[uninitialized]</p>
<p id="version_string">[uninitialized]</p>
<p id="active_seq">[uninitialized]</p>
<p id="proxies_on">Proxies enabled for sequence: </p>
<div>
<h2>New in 23.0!</h2>
<button class="controlBg textStyle" id="btn_PPRO87" onClick="evalScript('$._PPP_.importSrtAddToCaptionTrack()')">Import .srt file & add to new caption track</button>
</div>
<div>
<h2>New in 22.0.0!</h2>
</div>
<button class="controlBg textStyle" id="btn_PPRO84" onClick="evalScript('$._PPP_.enableAllDisabledClips()')">Enable all disabled clips in sequence</button>
<button class="controlBg textStyle" id="btn_PPRO85" onClick="evalScript('$._PPP_.showColorspaceInEvents()')">Show Clip Colorspace in Events</button>
<button class="controlBg textStyle" id="btn_PPRO86" onClick="evalScript('$._PPP_.moveTrackItemOnTimeline()')">Move Clip 13 Seconds on Timeline</button>
<div>
<h2>New in 14.3.1!</h2>
</div>
<button class="controlBg textStyle" id="btn_PPRO81" onClick="evalScript('$._PPP_.performSceneEditDetectionOnSelection()')">Detect cuts in active sequence</button>
<div>
<h2>New in 14.1!</h2>
</div>
<button class="controlBg textStyle" id="btn_PPRO77" onClick="evalScript('$._PPP_.openProduction()')">Open a production</button>
<button class="controlBg textStyle" id="btn_PPRO78" onClick="evalScript('$._PPP_.toggleProductionLockState()')">Toggle Production lock</button>
<button class="controlBg textStyle" id="btn_PPRO79" onClick="evalScript('$._PPP_.closeAllOpenProductionProjects()')">Close all Production projects</button>
<button class="controlBg textStyle" id="btn_PPRO80" onClick="evalScript('$._PPP_.moveProductionProjectsToTrash()')">Trash all open Production projects</button>
<button class="controlBg textStyle" id="btn_PPRO82" onClick="evalScript('$._PPP_.newSequenceFromProjectSelection()')">Create new sequence from selection</button>
<button class="controlBg textStyle" id="btn_PPRO83" onClick="evalScript('$._PPP_.adjustGraphicsWhiteLuminance()')">Adjust Graphics White Luminance</button>
<div>
<h2>New in 14.0!</h2>
</div>
<p> </p>
<button class="controlBg textStyle" id="btn_PPRO76" onClick="evalScript('$._PPP_.createNewProject()')">Create new project</button>
<button class="controlBg textStyle" id="btn_PPRO72" onClick="evalScript('$._PPP_.generateSystemCompatibilityReport()')">Generate system compatibility report</button>
<button class="controlBg textStyle" id="btn_PPRO75" onClick="evalScript('$._PPP_.changeSequenceColorSpace()')">Change colorspace of active sequence</button>
<p> </p>
<div>
<h2>New in 13.1!</h2>
</div>
<div id="section4" class="sectionID"
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<button class="controlBg textStyle" id="btn_PPRO57" onClick="evalScript('$._PPP_.closeAllProjectsOtherThanActiveProject()')">Close all but active project</button>
<button class="controlBg textStyle" id="btn_PPRO58" onClick="evalScript('$._PPP_.findAllAdjustmentLayersInProject()')">Find all adjustment layers</button>
<button class="controlBg textStyle" id="btn_PPRO59" onClick="evalScript('$._PPP_.consolidateDuplicates()')">Consolidate duplicate footage</button>
<button class="controlBg textStyle" id="btn_PPRO60" onClick="evalScript('$._PPP_.closeAllSequences()')">Close all sequences (in active project)</button>
<button class="controlBg textStyle" id="btn_PPRO62" onClick="evalScript('$._PPP_.reportSequenceVRSettings()')">Report sequence VR settings</button>
<button class="controlBg textStyle" id="btn_PPRO63" onClick="evalScript('$._PPP_.openProjectItemInSource()')">Open selected project items in Source monitor</button>
<button class="controlBg textStyle" id="btn_PPRO64" onClick="evalScript('$._PPP_.reinterpretFootage()')">Re-interpret selected project items</button>
<button class="controlBg textStyle" id="btn_PPRO66" onClick="evalScript('$._PPP_.createSubSequence()')">Create sub-sequence</button>
<button class="controlBg textStyle" id="btn_PPRO67" onClick="evalScript('$._PPP_.selectAllRetimedClips()')">Select all re-timed clips</button>
<button class="controlBg textStyle" id="btn_PPRO68" onClick="evalScript('$._PPP_.selectReversedClips()')">Select all reversed clips</button>
<button class="controlBg textStyle" id="btn_PPRO69" onClick="evalScript('$._PPP_.logConsoleOutput()')">Write log file of console output</button>
<button class="controlBg textStyle" id="btn_PPRO70" onClick="evalScript('$._PPP_.setWorkspace()')">Set the current Workspace</button>
<button id="stitchusingdefaultpreset">Stitch selected files in AME</button>
</div>
<div>
<div>
<h2>System</h2>
</div>
<div id="section1" class="sectionID">
<button class="controlBg textStyle" id="btn_PPRO33" onClick="evalScript('$._PPP_.closeFrontSourceClip()')">Close front-most Source monitor clip</button>
<button class="controlBg textStyle" id="btn_PPRO35" onClick="evalScript('$._PPP_.closeAllClipsInSourceMonitor()')">Close all clips in Source monitor</button>
<button id="openfolder">Open PProPanel folder</button>
<button id="openlogfilefolder">Open Premiere Pro's Log Files folder</button>
<button class="controlBg textStyle" id="btn_PPRO7" onClick="evalScript('$._PPP_.pokeAnywhere()')">Detect Anywhere Server</button>
<button class="controlBg textStyle" id="btn_PPRO71" onClick="evalScript('$._PPP_.enumerateTeamProjects()')">Identify open Team Projects</button>
<button id="checkforums">Check SDK Forums</button>
<button id="readAPIdocs">Read API documentation</button>
<button id="copypresets">Copy Presets</button>
<button class="controlBg textStyle" id="btn_PPRO18" onClick="evalScript('$._PPP_.getnumAEProjectItems()')">AE project item count</button>
<button class="controlBg textStyle" id="btn_PPRO49" onClick="evalScript('$._PPP_.turnOffStartDialog()')">Turn off Start dialog</button>
<button class="controlBg textStyle" id="btn_PPRO25" onClick="evalScript('$._PPP_.clearCache()')">Clear media cache</button>
<button class="controlBg textStyle" id="btn_PPRO61" onClick="evalScript('$._PPP_.dumpAllPresets()')">List available export presets</button>
</div>
<div>
<h2>Import and Create</h2>
</div>
<div id="section2" class="sectionID">
<button id="ingest">Ingest files, create proxies</button>
<button class="controlBg textStyle" id="btn_PPRO42" onClick="evalScript('$._PPP_.importMoGRT()')">Import MoGRT</button>
<button class="controlBg textStyle" id="btn_PPRO2" onClick="evalScript('$._PPP_.createSequence()')">Create Sequence</button>
<button class="controlBg textStyle" id="btn_PPRO37" onClick="evalScript('$._PPP_.importComps()')">Import Composition(s) from AE project</button>
<button id="newseqfrompreset">Create Sequence From Preset</button>
<button class="controlBg textStyle" id="btn_PPRO3" onClick="evalScript('$._PPP_.openProject()')">Open different project</button>
<button class="controlBg textStyle" id="btn_PPRO5" onClick="evalScript('$._PPP_.importFiles()')">Import Files</button>
<button class="controlBg textStyle" id="btn_PPRO8" onClick="evalScript('$._PPP_.openInSource()')">Open in Source Monitor...</button>
<button class="controlBg textStyle" id="btn_PPRO24" onClick="evalScript('$._PPP_.setProxiesON()')">Add proxy to first projItem</button>
<p> </p>
<p> </p>
<div id="dragthing" draggable="true" ondragstart="dragHandler(event)">Drag and drop import</div>
</div>
<div>
<h2>Metadata and Project manipulation</h2>
</div>
<div id="section3" class="sectionID">
<button id="toggleproxy">Toggle proxies in active project</button>
<button class="controlBg textStyle" id="btn_PPRO9" onClick="evalScript('$._PPP_.replaceMedia()')">Replace media...</button>
<button class="controlBg textStyle" id="btn_PPRO10" onClick="evalScript('$._PPP_.createSequenceMarkers()')">Add sequence markers</button>
<button class="controlBg textStyle" id="btn_PPRO16" onClick="evalScript('$._PPP_.addClipMarkers()')">Add clip markers</button>
<button class="controlBg textStyle" id="btn_PPRO17" onClick="evalScript('$._PPP_.updatePAR()')">Update PAR</button>
<button class="controlBg textStyle" id="btn_PPRO11" onClick="evalScript('$._PPP_.mungeXMP()')">Manipulate XMP</button>
<button class="controlBg textStyle" id="btn_PPRO14" onClick="evalScript('$._PPP_.updateAllProjectItems()')">Update all media</button>
<button class="controlBg textStyle" id="btn_PPRO15" onClick="evalScript('$._PPP_.modifyProjectMetadata()')">Modify project metadata</button>
<button class="controlBg textStyle" id="btn_PPRO23" onClick="evalScript('$._PPP_.setScratchDisk()')">Set scratch disk path</button>
<button class="controlBg textStyle" id="btn_PPRO27" onClick="evalScript('$._PPP_.randomizeSequenceSelection()')">Randomize sequence selection</button>
<button class="controlBg textStyle" id="btn_PPRO28" onClick="evalScript('$._PPP_.muteFun()')">Mute fun!</button>
<button class="controlBg textStyle" id="btn_PPRO29" onClick="evalScript('$._PPP_.onPlayWithKeyframes()')">Manipulate keyframes</button>
<button class="controlBg textStyle" id="btn_PPRO30" onClick="evalScript('$._PPP_.insertOrAppend()')">insert or append to active sequence</button>
<button class="controlBg textStyle" id="btn_PPRO56" onClick="evalScript('$._PPP_.insertOrAppendToTopTracks()')">insert or append, to top tracks</button>
<button class="controlBg textStyle" id="btn_PPRO31" onClick="evalScript('$._PPP_.overWrite()')">overwrite at CTI</button>
<button class="controlBg textStyle" id="btn_PPRO36" onClick="evalScript('$._PPP_.changeLabel()')">Label first projectItem</button>
<button class="controlBg textStyle" id="btn_PPRO21" onClick="evalScript('$._PPP_.addSubClip()')">Create subclip</button>
<button class="controlBg textStyle" id="btn_PPRO44" onClick="evalScript('$._PPP_.reportCurrentProjectSelection()')">Report selection to Events panel</button>
<button class="controlBg textStyle" id="btn_PPRO43" onClick="evalScript('$._PPP_.randomizeProjectSelection()')">Randomize project selection</button>
<button class="controlBg textStyle" id="btn_PPRO45" onClick="evalScript('$._PPP_.setOffline()')">Make selected items offline</button>
<button class="controlBg textStyle" id="btn_PPRO47" onClick="evalScript('$._PPP_.setAllOnline()')">Online all offline</button>
<button class="controlBg textStyle" id="btn_PPRO48" onClick="evalScript('$._PPP_.updateFrameRate()')">Update framerate</button>
<button class="controlBg textStyle" id="btn_PPRO50" onClick="evalScript('$._PPP_.changeMarkerColors()')">Change marker colors</button>
<button class="controlBg textStyle" id="btn_PPRO52" onClick="evalScript('$._PPP_.changeSeqTimeCodeDisplay()')">Change sequence timecode display</button>
<button class="controlBg textStyle" id="btn_PPRO32" onClick="evalScript('$._PPP_.saveCurrentProjectLayout()')">Save Project layout</button>
<button class="controlBg textStyle" id="btn_PPRO51" onClick="evalScript('$._PPP_.setProjectPanelMeta()')">Load Project layout</button>
<button class="controlBg textStyle" id="btn_PPRO12" onClick="evalScript('$._PPP_.exportSequenceAsPrProj()')">New project from sequence</button>
<button class="controlBg textStyle" id="btn_PPRO73" onClick="evalScript('$._PPP_.autoReframeActiveSequence()')">Auto-reframe active sequence</button>
<h2>Export</h2>
</div>
<div id="section4" class="sectionID">
<button id="transcodeusingdefaultpreset">Transcode first project item</button>
<button id="transcodeexternal">Transcode external file</button>
<button id="saveaspng">Save sequence frame as .png</button>
<button class="controlBg textStyle" id="btn_PPRO41" onClick="evalScript('$._PPP_.consolidateProject()')">Consolidate & Transfer project</button>
<button class="controlBg textStyle" id="btn_PPRO20" onClick="evalScript('$._PPP_.dumpXMPFromAllProjectItems()')">Dump XMP from all items</button>
<button class="controlBg textStyle" id="btn_PPRO34" onClick="evalScript('$._PPP_.saveProjectCopy()')">Save project copy...</button>
<button class="controlBg textStyle" id="btn_PPRO4" onClick="evalScript('$._PPP_.saveProject()')">Save project</button>
<button class="controlBg textStyle" id="btn_PPRO26" onClick="evalScript('$._PPP_.exportFramesForMarkers()')">Export frames for markers</button>
<button class="controlBg textStyle" id="btn_PPRO6" onClick="evalScript('$._PPP_.exportFCPXML()')">Export FCP XML</button>
<button class="controlBg textStyle" id="btn_PPRO22" onClick="evalScript('$._PPP_.exportAAF()')">Export sequence to AAF</button>
<button id="renderusingdefaultpreset">Render active sequence in AME</button>
</div>
</body>
<script>
document.body.onbeforeunload = function () {
var csInterface = new CSInterface();
var OSVersion = csInterface.getOSInformation();
var appVersion = csInterface.hostEnvironment.appVersion;
var versionAsFloat = parseFloat(appVersion);
csInterface.evalScript('$._PPP_.closeLog()');
if (versionAsFloat < 10.3) {
var path = "file:///Library/Application Support/Adobe/CEP/extensions/PProPanel/payloads/onbeforeunload.html";
if (OSVersion.indexOf("Windows") >= 0) {
path = "file:///C:/Program%20Files%20(x86)/Common%20Files/Adobe/CEP/extensions/PProPanel/payloads/onbeforeunload.html"
}
csInterface.openURLInDefaultBrowser(path);
}
};
</script>
</html>