You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`addCompToBatch(compPath: string, presetPath: string = "", outputPath: string = ""): boolean` : Adds the first comp of an After Effects project resp. the first sequence of a Premiere Pro project to the batch.
12
-
-`compPath`: Path to e.g. an After Effects project or Premiere Pro project. The first comp resp. sequence will be used.
13
-
-`presetPath`: Optional. If `presetPath` is empty, then the default preset will be applied.
14
-
-`outputPath`: Optional. If `outputPath` is empty, then the output file name will be generated based on the comp path.
e.g. an After Effects comp or Premiere Pro sequence to the batch and returns an [EncoderWrapper](./todo.md) object.
17
-
-`projectPath`: E.g. Premiere Pro or After Effects project path.
18
-
-`format`: E.g. `"H.264"`
19
-
-`presetPath`: Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied.
20
-
-`guid`: The unique id of e.g. a Premiere Pro sequence or After Effects composition.
21
-
-`outputPath`: Optional. If `outputPath` is empty, then the output file name will be generated based on the project path.
22
-
-`addFileSequenceToBatch(containingFolder: string, imagePath: string, presetPath: string, outputPath: string = ""): boolean` : Adds an image sequence to the batch. The images will be sorted in alphabetical order.
23
-
-`containingFolder`: The folder containing image files.
24
-
-`imagePath`: All images from the containing folder with the same extension will be added to the output file.
25
-
-`outputPath`: Optional. If `outputPath` is empty, then the output
26
-
file name will be generated based on the containingFolder name
27
-
-`addFileToBatch(filePath: string, format: string, presetPath: string, outputPath: string = ""): [EncoderWrapper object](./todo.md)` : Adds a file to the batch and returns an [EncoderWrapper](./todo.md) object.
28
-
-`filePath`: File path of a media source.
29
-
-`format`: E.g. `"H.264"`
30
-
-`presetPath`: Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied.
31
-
-`outputPath`: Optional. If `outputPath` is empty, then the output file name will be generated based on the file path.
32
-
-`addItemToBatch(sourcePath: string): boolean` : Adds a media source to the batch.
33
-
-`sourcePath`: Path of the media source.
34
-
-`addTeamProjectsItemToBatch(projectsURL: string, format: string, presetPath: string, outputPath: string): [EncoderWrapper object](./todo.md)` : Adds a team project item to the batch and returns an [EncoderWrapper](./todo.md) object.
35
-
-`projectsURL`: Team Projects URL or Team Projects Snap. You can
36
-
create a tp2snap file in PPro for a ProjectItem via the scripting
37
-
API saveProjectSnapshot.
38
-
-`format`: E.g. `"H.264"`
39
-
-`presetPath`: Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied.
-`outputFolderPath`: Optional. If outputFolderPath is empty, then the output file name will be generated based on the XML file path.
44
-
-`getDLItemsAtRoot(projectPath: string): array of strings` : Returns the list of GUIDs for objects (sequences/comps) at the top/root level.
45
-
-`projectPath`: E.g. Premiere Pro or After Effects project path.
46
-
-`stitchFiles(mediaPaths: string, format: string, presetPath: string, outputPath: string): [EncoderWrapper object](./todo.md)` : Adds a batch item for the given media and returns an [EncoderWrapper](./todo.md) object.
47
-
-`mediaPaths`: Semicolon delimited list of media paths.
48
-
-`format`: E.g. `"H.264"`
49
-
-`presetPath`: Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied.
50
-
-`stopBatch(): boolean` : Stops the batch.
51
-
52
-
<aid="code-samples-9"></a>
53
-
54
-
### Examples
55
-
56
-
<details>
57
-
58
-
<summary>addCompToBatch Example (click to expand):</summary>
|`projectPath`| String | E.g. Premiere Pro or After Effects project path. |
97
+
|`format`| String | E.g. `"H.264"`|
98
+
|`presetPath`| String | Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied. |
99
+
|`guid`| String | The unique id of e.g. a Premiere Pro sequence or After Effects composition. |
100
+
|`outputPath`| String | Optional. If `outputPath` is empty, then the output file name will be generated based on the project path. |
101
+
102
+
#### Returns
103
+
104
+
[EncoderWrapper object](./todo.md)
105
+
106
+
#### Example
107
+
112
108
```javascript
113
109
// The projectPath can be a path to an AfterEffects, Premiere Pro or Character Animator project
|`containingFolder`| String | The folder containing image files. |
195
+
|`imagePath`| String | All images from the containing folder with the same extension will be added to the output file. |
196
+
|`presetPath`| String | Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied. |
197
+
|`outputPath`| String | Optional. If `outputPath` is empty, then the output file name will be generated based on the containingFolder name. |
198
+
199
+
#### Returns
200
+
201
+
Boolean
202
+
203
+
#### Example
185
204
186
-
<summary>addFileSequenceToBatch Example (click to expand):</summary>
187
205
```javascript
188
206
var firstFile ="C:\\testdata\\Images\\AB-1.jpg";
189
207
var preset ="C:\\testdata\\HighQuality720HD.epr";
@@ -234,9 +252,31 @@ if (frontend) {
234
252
}
235
253
```
236
254
237
-
</details><br><details>
255
+
---
256
+
257
+
### FrontendScript.addFileToBatch()
258
+
259
+
`app.getFrontend().addFileToBatch(filePath, format, presetPath, [outputPath])`
260
+
261
+
#### Description
262
+
263
+
Adds a file to the batch and returns an [EncoderWrapper](./todo.md).
|`filePath`| String | File path of a media source. |
270
+
|`format`| String | E.g. `"H.264"`|
271
+
|`presetPath`| String | Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied. |
272
+
|`outputPath`| String | Optional. If `outputPath` is empty, then the output file name will be generated based on the file path. |
273
+
274
+
#### Returns
275
+
276
+
[EncoderWrapper object](./todo.md)
277
+
278
+
#### Example
238
279
239
-
<summary>addFileToBatch Example (click to expand):</summary>
|`projectsURL`| String | Team Projects URL or Team Projects Snap. You can create a tp2snap file in PPro for a ProjectItem via the scripting API saveProjectSnapshot. |
413
+
|`format`| String | E.g. `"H.264"`|
414
+
|`presetPath`| String | Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied. |
415
+
|`outputPath`| String | Optional. If `outputPath` is empty, then the output file name will be generated based on the comp path. |
416
+
417
+
#### Returns
418
+
419
+
[EncoderWrapper object](./todo.md)
420
+
421
+
#### Example
340
422
341
-
<summary>addTeamProjectsItemToBatch Example (click to expand):</summary>
342
423
```javascript
343
424
// use for the source (projectsURL) a valid Team Projects URL or a Team Projects Snap
344
425
// you can create a tp2snap file in PPro for a ProjectItem via the scripting API saveProjectSnapshot
|`mediaPaths`| String | Semicolon delimited list of media paths. |
609
+
|`format`| String | E.g. `"H.264"`|
610
+
|`presetPath`| String | Either a preset or a format input must be present. If no preset is used then the default preset of the specified format will be applied. |
611
+
|`outputPath`| String | Optional. If `outputPath` is empty, then the output file name will be generated based on the comp path. |
612
+
613
+
#### Returns
614
+
615
+
[EncoderWrapper object](./todo.md)
616
+
617
+
#### Example
475
618
476
-
<summary>stitchFiles Example (click to expand):</summary>
0 commit comments