afterpresets 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/runtime/docs/cep/host-after-effects.md +57 -0
- package/runtime/docs/cep/host-premiere.md +84 -0
- package/runtime/docs/{host.md → cep/host.md} +34 -16
- package/runtime/docs/{README.md → common/README.md} +9 -7
- package/runtime/docs/{assets.md → common/assets.md} +16 -2
- package/runtime/docs/{licensing.md → common/licensing.md} +1 -1
- package/runtime/docs/{panels.md → common/panels.md} +5 -5
- package/runtime/docs/{storage.md → common/storage.md} +5 -5
- package/runtime/docs/{updates.md → common/updates.md} +1 -1
- package/runtime/package.json +1 -1
- package/runtime/src/host.js +1 -1
- package/runtime/src/updates.js +1 -1
- package/src/build/build.js +7 -7
- package/src/build/html.js +1 -1
- package/src/build/jsx.js +2 -2
- package/src/build/runtime.js +3 -3
- package/src/check/check.js +3 -3
- package/src/check/types.js +2 -2
- package/src/cli.js +5 -5
- package/src/commands/add.js +8 -3
- package/src/commands/check.js +3 -3
- package/src/commands/dev.js +2 -2
- package/src/commands/docs.js +1 -1
- package/src/commands/init.js +12 -3
- package/src/config.js +1 -1
- package/src/dev/cep-link.js +1 -1
- package/src/dev/debug-file.js +5 -5
- package/src/mcp/extendscript.js +9 -7
- package/src/mcp/panels.js +1 -1
- package/src/mcp/server.js +2 -2
- package/src/mcp/tools/host.js +1 -1
- package/src/mcp/tools/panel.js +4 -4
- package/src/mcp/tools/project.js +15 -15
- package/src/project/add-panel.js +1 -1
- package/src/project/docs.js +3 -1
- package/src/project/manifest.js +3 -2
- package/src/project/project.js +2 -2
- package/src/project/template.js +4 -1
- package/src/prompt.js +1 -1
- package/src/release/installers.js +4 -4
- package/src/release/package.js +1 -1
- package/src/release/publish.js +1 -1
- package/src/targets.js +1 -0
- package/src/user-config.js +2 -2
- package/template/{AGENTS.md → cep/AGENTS.md} +23 -22
- package/template/{README.md → cep/README.md} +9 -9
- package/template/{docs → cep/docs}/initial_setup.md +4 -4
- package/template/{src → cep/src}/features/home/home.html +4 -4
- package/template/{src → cep/src}/features/home/home.js +10 -11
- package/template/{src → cep/src}/shared/lib/host-theme.js +3 -3
- package/template/{src → cep/src}/shared/lib/view.js +1 -1
- package/template/{src → cep/src}/shared/ui/tokens.css +1 -1
- package/template/hosts/aeft/AGENTS.host.md +10 -0
- package/template/hosts/aeft/jsx/aeft/home.jsx +16 -0
- package/template/hosts/ppro/AGENTS.host.md +15 -0
- package/template/hosts/ppro/jsx/ppro/home.jsx +20 -0
- package/vendor/afterpresets-additions/AfterEffects.d.ts +291 -0
- package/vendor/afterpresets-additions/Premiere.d.ts +179 -0
- package/vendor/types-for-adobe/Premiere/24.0/index.d.ts +2567 -0
- package/vendor/types-for-adobe/README.md +8 -4
- package/template/jsx/home.jsx +0 -17
- /package/runtime/docs/{boot.md → common/boot.md} +0 -0
- /package/template/{.mcp.json → cep/.mcp.json} +0 -0
- /package/template/{gitignore → cep/gitignore} +0 -0
- /package/template/{package.json → cep/package.json} +0 -0
- /package/template/{src → cep/src}/features/home/home.css +0 -0
- /package/template/{src → cep/src}/features/license-screen/license-screen.css +0 -0
- /package/template/{src → cep/src}/features/license-screen/license-screen.html +0 -0
- /package/template/{src → cep/src}/features/license-screen/license-screen.js +0 -0
- /package/template/{src → cep/src}/features/update-screen/update-screen.css +0 -0
- /package/template/{src → cep/src}/features/update-screen/update-screen.html +0 -0
- /package/template/{src → cep/src}/features/update-screen/update-screen.js +0 -0
- /package/template/{src → cep/src}/panels/main/index.html +0 -0
- /package/template/{src → cep/src}/panels/main/main.js +0 -0
- /package/template/{src → cep/src}/shared/lib/dom.js +0 -0
- /package/template/{src → cep/src}/shared/lib/markdown.js +0 -0
- /package/template/{src → cep/src}/shared/ui/base.css +0 -0
- /package/template/{src → cep/src}/shared/ui/button.css +0 -0
- /package/template/{src → cep/src}/shared/ui/card.css +0 -0
- /package/template/{src → cep/src}/shared/ui/field.css +0 -0
- /package/template/{src → cep/src}/shared/ui/index.css +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* onAction(root, { save: fn }); // a click on data-action="save" calls fn(button, event)
|
|
8
8
|
*
|
|
9
9
|
* mount() is the only place that parses HTML, and only for the project's own
|
|
10
|
-
* .html files. Text from users, the server or
|
|
10
|
+
* .html files. Text from users, the server or the host app always goes through
|
|
11
11
|
* fill() (textContent), so it is never parsed as HTML. */
|
|
12
12
|
|
|
13
13
|
export function mount(root, markup) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Design tokens. Change the look of the whole extension here first.
|
|
2
|
-
* --color-bg follows
|
|
2
|
+
* --color-bg follows the host app's interface brightness (src/shared/lib/host-theme.js);
|
|
3
3
|
* surfaces are translucent so they work on any brightness. */
|
|
4
4
|
:root {
|
|
5
5
|
--color-bg: #232323;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## Scripting After Effects
|
|
2
|
+
|
|
3
|
+
- `jsx/aeft/` holds code that only runs in After Effects. Reference:
|
|
4
|
+
`docs/afterpresets/host-after-effects.md`.
|
|
5
|
+
- Wrap every change in one undo step: `app.beginUndoGroup("Rename layers")`
|
|
6
|
+
… `app.endUndoGroup()` (in a `try` / `finally`), so the user undoes the
|
|
7
|
+
whole action with one Ctrl/Cmd+Z.
|
|
8
|
+
- `app.project.activeItem` is null or not a composition often: check
|
|
9
|
+
`instanceof CompItem` before using it. Collections are 1-based
|
|
10
|
+
(`comp.layer(1)`).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* STARTER EXAMPLE - delete with src/features/home/.
|
|
2
|
+
* After Effects only (jsx/aeft/ loads only in After Effects; jsx/*.jsx is shared).
|
|
3
|
+
* Called from the panel with ctx.host.eval(name, args, cb). Each function takes
|
|
4
|
+
* JSON-compatible arguments and returns a JSON string. */
|
|
5
|
+
|
|
6
|
+
function getHomeSummary() {
|
|
7
|
+
var item = app.project.activeItem;
|
|
8
|
+
if (!item || !(item instanceof CompItem)) {
|
|
9
|
+
return JSON.stringify({ ok: false, message: "Open or select a composition first." });
|
|
10
|
+
}
|
|
11
|
+
return JSON.stringify({
|
|
12
|
+
ok: true,
|
|
13
|
+
name: item.name,
|
|
14
|
+
detail: item.width + " x " + item.height + " | " + item.numLayers + (item.numLayers === 1 ? " layer" : " layers")
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## Scripting Premiere Pro
|
|
2
|
+
|
|
3
|
+
- `jsx/ppro/` holds code that only runs in Premiere Pro. Reference:
|
|
4
|
+
`docs/afterpresets/host-premiere.md`.
|
|
5
|
+
- **No undo groups.** Premiere's ExtendScript has no `beginUndoGroup`: every
|
|
6
|
+
change a script makes is its own undo step. Keep scripted edits small and
|
|
7
|
+
tell the user how many steps an action adds to the undo history.
|
|
8
|
+
- **Times are ticks.** 254016000000 ticks per second. `Time` objects have
|
|
9
|
+
`.seconds` and `.ticks` (a string); set times with
|
|
10
|
+
`t = new Time(); t.seconds = 2.5` or `t.ticks = "..."`.
|
|
11
|
+
- **Do not use the QE DOM** (`app.enableQE()`, `qe.*`): it is undocumented,
|
|
12
|
+
unsupported, and changes between versions.
|
|
13
|
+
- `app.project.activeSequence` is null when no sequence is open; check it.
|
|
14
|
+
Track and clip collections are 0-based (`sequence.videoTracks[0].clips[0]`)
|
|
15
|
+
with `numTracks` / `numItems`.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* STARTER EXAMPLE - delete with src/features/home/.
|
|
2
|
+
* Premiere Pro only (jsx/ppro/ loads only in Premiere Pro; jsx/*.jsx is shared).
|
|
3
|
+
* Called from the panel with ctx.host.eval(name, args, cb). Each function takes
|
|
4
|
+
* JSON-compatible arguments and returns a JSON string. */
|
|
5
|
+
|
|
6
|
+
function getHomeSummary() {
|
|
7
|
+
var sequence = app.project ? app.project.activeSequence : null;
|
|
8
|
+
if (!sequence) {
|
|
9
|
+
return JSON.stringify({ ok: false, message: "Open a sequence first." });
|
|
10
|
+
}
|
|
11
|
+
var clips = 0;
|
|
12
|
+
var i;
|
|
13
|
+
for (i = 0; i < sequence.videoTracks.numTracks; i++) clips += sequence.videoTracks[i].clips.numItems;
|
|
14
|
+
for (i = 0; i < sequence.audioTracks.numTracks; i++) clips += sequence.audioTracks[i].clips.numItems;
|
|
15
|
+
return JSON.stringify({
|
|
16
|
+
ok: true,
|
|
17
|
+
name: sequence.name,
|
|
18
|
+
detail: clips + (clips === 1 ? " clip" : " clips")
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
// Generated by packages/cli/scripts/host-types (run.js + generate.js). Do not edit by hand.
|
|
2
|
+
// Source: aftereffects 26.2.1x2 (26.2.1x2), ExtendScript reflection, 2026-11-05.
|
|
3
|
+
// Only what types-for-adobe AfterEffects/26.0 lacks: new members of its classes (merged as interfaces),
|
|
4
|
+
// new classes and enum members. Types are best effort (unknown types are `any`) and every
|
|
5
|
+
// method argument is optional, so these can only remove false hints, never add one.
|
|
6
|
+
// Stats: {"classesExtended":20,"newClasses":2,"members":175,"enumMembers":6,"newEnums":0}
|
|
7
|
+
|
|
8
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
9
|
+
interface AVLayer {
|
|
10
|
+
guides: any[]
|
|
11
|
+
lightSource: any
|
|
12
|
+
lightType: any
|
|
13
|
+
addGuide(...rest: any[]): any
|
|
14
|
+
getGuideAsObject(...rest: any[]): any
|
|
15
|
+
getRenderGUID(...rest: any[]): any
|
|
16
|
+
removeGuide(...rest: any[]): any
|
|
17
|
+
setGuide(...rest: any[]): any
|
|
18
|
+
splitLayer(...rest: any[]): any
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
22
|
+
interface Application {
|
|
23
|
+
appName: string
|
|
24
|
+
areToolTipsEnabled: boolean
|
|
25
|
+
ccUserGuid: string
|
|
26
|
+
disableScriptingProgressDialog: boolean
|
|
27
|
+
getAllowedAppThemes: any[]
|
|
28
|
+
getAppTheme: string
|
|
29
|
+
getUseReducedContrast: boolean
|
|
30
|
+
internalEffects: any[]
|
|
31
|
+
isAnalyticsEnabled: boolean
|
|
32
|
+
isBeta: boolean
|
|
33
|
+
isProfessionalVersion: boolean
|
|
34
|
+
isStagingEnvironment: boolean
|
|
35
|
+
isUISuppressed: boolean
|
|
36
|
+
learnPanelContentDirPath: string
|
|
37
|
+
reportErrorOnMissingFrame: boolean
|
|
38
|
+
dispatchCEPEvent(...rest: any[]): any
|
|
39
|
+
download(...rest: any[]): any
|
|
40
|
+
getCCXUserJSONData(...rest: any[]): any
|
|
41
|
+
getDebugDatabase(...rest: any[]): any
|
|
42
|
+
hasDebugDatabaseValue(...rest: any[]): any
|
|
43
|
+
injectPresetAnimation(...rest: any[]): any
|
|
44
|
+
isBetaFeatureEnabled(...rest: any[]): any
|
|
45
|
+
log(...rest: any[]): any
|
|
46
|
+
newTeamProject(...rest: any[]): any
|
|
47
|
+
objectToJSON(...rest: any[]): any
|
|
48
|
+
onCEPEvent(...rest: any[]): any
|
|
49
|
+
openFast(...rest: any[]): any
|
|
50
|
+
openTeamProject(...rest: any[]): any
|
|
51
|
+
openTemplate(...rest: any[]): any
|
|
52
|
+
removeDebugDatabaseEntry(...rest: any[]): any
|
|
53
|
+
restart(...rest: any[]): any
|
|
54
|
+
setDebugDatabase(...rest: any[]): any
|
|
55
|
+
setExtensionPersistent(...rest: any[]): any
|
|
56
|
+
themeColor(...rest: any[]): any
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
60
|
+
interface CameraLayer {
|
|
61
|
+
adjustmentLayer: boolean
|
|
62
|
+
environmentLayer: boolean
|
|
63
|
+
guides: any[]
|
|
64
|
+
lightSource: any
|
|
65
|
+
lightType: any
|
|
66
|
+
addGuide(...rest: any[]): any
|
|
67
|
+
addToMotionGraphicsTemplate(...rest: any[]): any
|
|
68
|
+
addToMotionGraphicsTemplateAs(...rest: any[]): any
|
|
69
|
+
canAddToMotionGraphicsTemplate(...rest: any[]): any
|
|
70
|
+
getGuideAsObject(...rest: any[]): any
|
|
71
|
+
getRenderGUID(...rest: any[]): any
|
|
72
|
+
removeGuide(...rest: any[]): any
|
|
73
|
+
setGuide(...rest: any[]): any
|
|
74
|
+
splitLayer(...rest: any[]): any
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
78
|
+
interface CompItem {
|
|
79
|
+
counters: boolean
|
|
80
|
+
dynamicLinkGUID: string
|
|
81
|
+
frameTime: number
|
|
82
|
+
guides: any[]
|
|
83
|
+
applyPreset(...rest: any[]): any
|
|
84
|
+
doContentAwareFill(...rest: any[]): any
|
|
85
|
+
getGuideAsObject(...rest: any[]): any
|
|
86
|
+
getRenderGUID(...rest: any[]): any
|
|
87
|
+
renderFrame(...rest: any[]): any
|
|
88
|
+
saveDraftFrameToPng(...rest: any[]): any
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
92
|
+
interface FolderItem {
|
|
93
|
+
dynamicLinkGUID: string
|
|
94
|
+
guides: any
|
|
95
|
+
getGuideAsObject(...rest: any[]): any
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
99
|
+
declare class Font {
|
|
100
|
+
designAxesData: any[]
|
|
101
|
+
designVector: any[]
|
|
102
|
+
designVectorIsDefault: boolean
|
|
103
|
+
familyName: string
|
|
104
|
+
familyPrefix: string
|
|
105
|
+
fontID: number
|
|
106
|
+
fullName: string
|
|
107
|
+
hasDesignAxes: boolean
|
|
108
|
+
isFromAdobeFonts: boolean
|
|
109
|
+
isSubstitute: boolean
|
|
110
|
+
location: string
|
|
111
|
+
nativeFamilyName: string
|
|
112
|
+
nativeFullName: string
|
|
113
|
+
nativeStyleName: string
|
|
114
|
+
otherFontsWithSameDict: any[]
|
|
115
|
+
postScriptName: string
|
|
116
|
+
styleName: string
|
|
117
|
+
technology: number
|
|
118
|
+
type: number
|
|
119
|
+
version: string
|
|
120
|
+
writingScripts: any[]
|
|
121
|
+
hasGlyphsFor(...rest: any[]): any
|
|
122
|
+
hasSameDict(...rest: any[]): any
|
|
123
|
+
postScriptNameForDesignVector(...rest: any[]): any
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
127
|
+
declare class Fonts {
|
|
128
|
+
allFonts: any[]
|
|
129
|
+
favoriteFontFamilyList: any[]
|
|
130
|
+
fontServerRevision: number
|
|
131
|
+
fontsDuplicateByPostScriptName: any[]
|
|
132
|
+
fontsWithDefaultDesignAxes: any[]
|
|
133
|
+
freezeSyncSubstitutedFonts: boolean
|
|
134
|
+
missingOrSubstitutedFonts: any[]
|
|
135
|
+
mruFontFamilyList: any[]
|
|
136
|
+
substitutedFontReplacementMatchPolicy: number
|
|
137
|
+
getCTScriptForString(...rest: any[]): any
|
|
138
|
+
getDefaultFontForCTScript(...rest: any[]): any
|
|
139
|
+
getFontByID(...rest: any[]): any
|
|
140
|
+
getFontsByFamilyNameAndStyleName(...rest: any[]): any
|
|
141
|
+
getFontsByPostScriptName(...rest: any[]): any
|
|
142
|
+
pollForAndPushNonSystemFontFoldersChanges(...rest: any[]): any
|
|
143
|
+
setDefaultFontForCTScript(...rest: any[]): any
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
147
|
+
interface FootageItem {
|
|
148
|
+
dynamicLinkGUID: string
|
|
149
|
+
frameTime: number
|
|
150
|
+
guides: any[]
|
|
151
|
+
getGuideAsObject(...rest: any[]): any
|
|
152
|
+
getRenderGUID(...rest: any[]): any
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
156
|
+
interface ImportOptions {
|
|
157
|
+
rangeEnd: number
|
|
158
|
+
rangeStart: number
|
|
159
|
+
isFileNameNumbered(...rest: any[]): any
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
163
|
+
interface LightLayer {
|
|
164
|
+
adjustmentLayer: boolean
|
|
165
|
+
environmentLayer: boolean
|
|
166
|
+
guides: any[]
|
|
167
|
+
addGuide(...rest: any[]): any
|
|
168
|
+
addToMotionGraphicsTemplate(...rest: any[]): any
|
|
169
|
+
addToMotionGraphicsTemplateAs(...rest: any[]): any
|
|
170
|
+
canAddToMotionGraphicsTemplate(...rest: any[]): any
|
|
171
|
+
getGuideAsObject(...rest: any[]): any
|
|
172
|
+
getRenderGUID(...rest: any[]): any
|
|
173
|
+
removeGuide(...rest: any[]): any
|
|
174
|
+
setGuide(...rest: any[]): any
|
|
175
|
+
splitLayer(...rest: any[]): any
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
179
|
+
interface MaskPropertyGroup {
|
|
180
|
+
addToMotionGraphicsTemplate(...rest: any[]): any
|
|
181
|
+
addToMotionGraphicsTemplateAs(...rest: any[]): any
|
|
182
|
+
canAddToMotionGraphicsTemplate(...rest: any[]): any
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
186
|
+
interface OMCollection {
|
|
187
|
+
add(...rest: any[]): any
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
191
|
+
interface OutputModule {
|
|
192
|
+
normalizeSettings(...rest: any[]): any
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
196
|
+
interface Project {
|
|
197
|
+
colorManagementSystem: number
|
|
198
|
+
lutInterpolationMethod: number
|
|
199
|
+
ocioConfigurationFile: string
|
|
200
|
+
revision: number
|
|
201
|
+
createComp(...rest: any[]): any
|
|
202
|
+
placeAsset(...rest: any[]): any
|
|
203
|
+
serializeToXML(...rest: any[]): any
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
207
|
+
interface PropertyGroup {
|
|
208
|
+
addToMotionGraphicsTemplate(...rest: any[]): any
|
|
209
|
+
addToMotionGraphicsTemplateAs(...rest: any[]): any
|
|
210
|
+
canAddToMotionGraphicsTemplate(...rest: any[]): any
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
214
|
+
interface RenderQueue {
|
|
215
|
+
firstError: string
|
|
216
|
+
lastError: string
|
|
217
|
+
renderAsync(...rest: any[]): any
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
221
|
+
interface RenderQueueItem {
|
|
222
|
+
comment: string
|
|
223
|
+
onComplete(...rest: any[]): any
|
|
224
|
+
onReorder(...rest: any[]): any
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
228
|
+
interface ShapeLayer {
|
|
229
|
+
guides: any[]
|
|
230
|
+
lightSource: any
|
|
231
|
+
lightType: any
|
|
232
|
+
addGuide(...rest: any[]): any
|
|
233
|
+
getGuideAsObject(...rest: any[]): any
|
|
234
|
+
getRenderGUID(...rest: any[]): any
|
|
235
|
+
removeGuide(...rest: any[]): any
|
|
236
|
+
setGuide(...rest: any[]): any
|
|
237
|
+
splitLayer(...rest: any[]): any
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
241
|
+
interface System {
|
|
242
|
+
convert_unix_path(...rest: any[]): any
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
246
|
+
interface TextDocument {
|
|
247
|
+
ligature: any
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
251
|
+
interface TextLayer {
|
|
252
|
+
guides: any[]
|
|
253
|
+
lightSource: any
|
|
254
|
+
lightType: any
|
|
255
|
+
addGuide(...rest: any[]): any
|
|
256
|
+
getGuideAsObject(...rest: any[]): any
|
|
257
|
+
getRenderGUID(...rest: any[]): any
|
|
258
|
+
removeGuide(...rest: any[]): any
|
|
259
|
+
setGuide(...rest: any[]): any
|
|
260
|
+
splitLayer(...rest: any[]): any
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. May include undocumented members. */
|
|
264
|
+
interface View {
|
|
265
|
+
onSync(...rest: any[]): any
|
|
266
|
+
saveBlittedImageToPng(...rest: any[]): any
|
|
267
|
+
startPlayback(...rest: any[]): any
|
|
268
|
+
stopPlayback(...rest: any[]): any
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. */
|
|
272
|
+
declare enum CTFontType {
|
|
273
|
+
CT_DONTKNOW_FONTTYPE = 12622,
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. */
|
|
277
|
+
declare enum GpuAccelType {
|
|
278
|
+
DIRECTX = 1817,
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. */
|
|
282
|
+
declare enum LightType {
|
|
283
|
+
ENVIRONMENT = 4416,
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** Found by reflection in After Effects 26.2.1x2; not in types-for-adobe. */
|
|
287
|
+
declare enum PREFType {
|
|
288
|
+
PREF_Type_MACHINE_SPECIFIC_EFFECTS = 8819,
|
|
289
|
+
PREF_Type_MACHINE_SPECIFIC_EXPRESSION_SNIPPETS = 8820,
|
|
290
|
+
PREF_Type_MACHINE_SPECIFIC_SCRIPT_SNIPPETS = 8821,
|
|
291
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// Generated by packages/cli/scripts/host-types (run.js + generate.js). Do not edit by hand.
|
|
2
|
+
// Source: premierepro 26.2.2 (3), ExtendScript reflection, 2026-11-05.
|
|
3
|
+
// Only what types-for-adobe Premiere/24.0 lacks: new members of its classes (merged as interfaces),
|
|
4
|
+
// new classes and enum members. Types are best effort (unknown types are `any`) and every
|
|
5
|
+
// method argument is optional, so these can only remove false hints, never add one.
|
|
6
|
+
// Stats: {"classesExtended":17,"newClasses":2,"members":97,"enumMembers":0,"newEnums":0}
|
|
7
|
+
|
|
8
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
9
|
+
interface Anywhere {
|
|
10
|
+
addEventListener(...rest: any[]): any
|
|
11
|
+
dispatchEvent(...rest: any[]): any
|
|
12
|
+
openTeamProjectSnapshot(inTeamProjectSnapshotPath?: string, ...rest: any[]): boolean
|
|
13
|
+
removeEventListener(...rest: any[]): any
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
17
|
+
interface Application {
|
|
18
|
+
readonly isStagingEnvironment: boolean
|
|
19
|
+
readonly learnPanelContentDirPath: string
|
|
20
|
+
readonly learnPanelExampleProjectDirPath: string
|
|
21
|
+
readonly path: string
|
|
22
|
+
dispatchEvent(...rest: any[]): any
|
|
23
|
+
getConstant(name?: string, ...rest: any[]): number
|
|
24
|
+
getCurrentProjectViewSelection(...rest: any[]): any[]
|
|
25
|
+
isWindowVisible(windowClass?: string, ...rest: any[]): boolean
|
|
26
|
+
newPrProduction(arg0?: string, ...rest: any[]): Object
|
|
27
|
+
refresh(...rest: any[]): boolean
|
|
28
|
+
removeEventListener(...rest: any[]): any
|
|
29
|
+
write(p0?: string, arg1?: boolean, ...rest: any[]): boolean
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
33
|
+
declare class ColorSpace {
|
|
34
|
+
readonly empty: boolean
|
|
35
|
+
readonly isSceneReferred: boolean
|
|
36
|
+
readonly matrixEquation: number
|
|
37
|
+
readonly name: string
|
|
38
|
+
readonly primaries: number
|
|
39
|
+
readonly transferCharacteristic: number
|
|
40
|
+
getPeakLuminance(...rest: any[]): number
|
|
41
|
+
setPeakLuminance(arg0?: number, ...rest: any[]): boolean
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
45
|
+
interface Component {
|
|
46
|
+
readonly instanceName: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
50
|
+
interface Encoder {
|
|
51
|
+
addEventListener(...rest: any[]): any
|
|
52
|
+
dispatchEvent(...rest: any[]): any
|
|
53
|
+
exportWithPresetObject(outputFilePath?: string, EncoderPreset?: Object, Sequence?: Object, arg3?: boolean, ...rest: any[]): boolean
|
|
54
|
+
getPresetObject(presetPath?: string, ...rest: any[]): any
|
|
55
|
+
removeEventListener(...rest: any[]): any
|
|
56
|
+
selectFolder(...rest: any[]): string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
60
|
+
interface MarkerCollection {
|
|
61
|
+
readonly length: number
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
65
|
+
interface Project {
|
|
66
|
+
readonly cloudProjectlocalID: string
|
|
67
|
+
readonly isCloudProject: boolean
|
|
68
|
+
applyLumetriPreset(p0?: string, ...rest: any[]): boolean
|
|
69
|
+
applyProjectSnapshot(arg0?: string, arg1?: boolean, arg2?: boolean, ...rest: any[]): boolean
|
|
70
|
+
disableCopyToLocationSetting(...rest: any[]): boolean
|
|
71
|
+
enableAdobeLocationCopy(...rest: any[]): boolean
|
|
72
|
+
enableSharedLocationCopy(p0?: string, ...rest: any[]): boolean
|
|
73
|
+
getAllLumetriPresetsList(...rest: any[]): any
|
|
74
|
+
getLUTInterpolationMethod(...rest: any[]): number
|
|
75
|
+
getLumetriPresetsForFolderList(p0?: string, ...rest: any[]): any
|
|
76
|
+
getSharedLocation(...rest: any[]): string
|
|
77
|
+
getSupportedLUTInterpolationMethods(...rest: any[]): any
|
|
78
|
+
isAdobeLocationCopyEnabled(...rest: any[]): boolean
|
|
79
|
+
isSharedLocationCopyEnabled(...rest: any[]): boolean
|
|
80
|
+
saveProjectSnapshot(arg0?: string, ...rest: any[]): boolean
|
|
81
|
+
setEnableTranscodeOnIngest(arg0?: boolean, ...rest: any[]): boolean
|
|
82
|
+
setLUTInterpolationMethod(arg0?: number, ...rest: any[]): boolean
|
|
83
|
+
setLogColorManagement(arg0?: boolean, ...rest: any[]): boolean
|
|
84
|
+
setScratchDiskPath(arg0?: string, arg1?: string, ...rest: any[]): boolean
|
|
85
|
+
writeSidecarFile(fileName?: string, fileExtension?: string, contents?: string, ...rest: any[]): string
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
89
|
+
interface ProjectCollection {
|
|
90
|
+
readonly length: number
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
94
|
+
interface ProjectItem {
|
|
95
|
+
readonly getOverrideColorSpaceList: any[]
|
|
96
|
+
readonly interpretedTimebase: string
|
|
97
|
+
readonly sourceTimebase: string
|
|
98
|
+
getEmbeddedLUTID(...rest: any[]): string
|
|
99
|
+
getInputLUTID(...rest: any[]): string
|
|
100
|
+
getOriginalColorSpace(...rest: any[]): ColorSpace
|
|
101
|
+
getOverrideColorSpace(...rest: any[]): ColorSpace
|
|
102
|
+
getProjectColumnsMetadata(...rest: any[]): string
|
|
103
|
+
isAdjustmentLayer(...rest: any[]): boolean
|
|
104
|
+
isColorManagedMedia(...rest: any[]): boolean
|
|
105
|
+
isMulticamClip(...rest: any[]): boolean
|
|
106
|
+
isOffline(...rest: any[]): boolean
|
|
107
|
+
isReference(...rest: any[]): boolean
|
|
108
|
+
isValidOverrideColorSpace(ColorSpace?: Object, ...rest: any[]): boolean
|
|
109
|
+
saveProjectSnapshot(arg0?: string, ...rest: any[]): boolean
|
|
110
|
+
setOffline(...rest: any[]): boolean
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
114
|
+
interface ProjectItemCollection {
|
|
115
|
+
readonly length: number
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
119
|
+
interface ProjectManagerOptions {
|
|
120
|
+
readonly CLIP_MODE_CONSOLIDATE_AND_TRANSCODE: number
|
|
121
|
+
readonly CLIP_MODE_RENDER_AND_REPLACE: number
|
|
122
|
+
clipTranscodeMode: number
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
126
|
+
declare class Properties {
|
|
127
|
+
clearProperty(arg0?: string, ...rest: any[]): boolean
|
|
128
|
+
doesPropertyExist(arg0?: string, ...rest: any[]): boolean
|
|
129
|
+
getProperty(arg0?: string, ...rest: any[]): string
|
|
130
|
+
isPropertyReadOnly(arg0?: string, ...rest: any[]): boolean
|
|
131
|
+
setProperty(...rest: any[]): boolean
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
135
|
+
interface Sequence {
|
|
136
|
+
audioDisplayFormat: number
|
|
137
|
+
close(...rest: any[]): boolean
|
|
138
|
+
importMGTFromLibrary(...rest: any[]): Object
|
|
139
|
+
overwriteClip(...rest: any[]): boolean
|
|
140
|
+
performSceneEditDetectionOnSelection(clipOperation?: string, ...rest: any[]): boolean
|
|
141
|
+
renderVideoFrameAtTime(arg0?: string, Time?: Object, arg2?: boolean, ...rest: any[]): any
|
|
142
|
+
renderVideoFrameAtTimeWithColorSpace(arg0?: string, Time?: Object, arg2?: string, arg3?: boolean, arg4?: string, arg5?: boolean, arg6?: boolean, arg7?: number, ...rest: any[]): any
|
|
143
|
+
setEnableProxies(arg0?: boolean, ...rest: any[]): boolean
|
|
144
|
+
setSelection(selection?: any[], ...rest: any[]): boolean
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
148
|
+
interface SequenceCollection {
|
|
149
|
+
readonly length: number
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
153
|
+
interface SequenceSettings {
|
|
154
|
+
autoInputGamutCompressionEnabled: boolean
|
|
155
|
+
autoToneMapEnabled: boolean
|
|
156
|
+
gamutMappingControls: any
|
|
157
|
+
previewCodec: string
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
161
|
+
interface Time {
|
|
162
|
+
setSecondsAsFraction(arg0?: number, arg1?: number, ...rest: any[]): boolean
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
166
|
+
interface TrackCollection {
|
|
167
|
+
readonly length: number
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
171
|
+
interface TrackItem {
|
|
172
|
+
readonly matchName: string
|
|
173
|
+
isMGT(...rest: any[]): boolean
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** Found by reflection in Premiere Pro 26.2.2; not in types-for-adobe. May include undocumented members. */
|
|
177
|
+
interface TrackItemCollection {
|
|
178
|
+
readonly length: number
|
|
179
|
+
}
|