Copy link to clipboard
Copied
I am creating a type definition file for the latest Premiere Pro version based on the Types-for-Adobe repository(https://github.com/bbb999/Types-for-Adobe).
However, Premiere Pro Scripting Guide(https://ppro-scripting.docsforadobe.dev) doesn't seem to keep up with at least the latest version.
Could you please update the functions listed in the type definition file below?
https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PremierePro.15.0.d.ts
The PPro Scripting Guide receives frequent updates.
> Could you please update the functions listed in the type definition file below?
That file references every API function, most of which are already documented. Specifically, for which functions are you requesting additional info?
Okay, I've updated the TypeScript definitions in the sample; hope this is helpful. Some answers to your questions, in case they're useful to others.
> # Application object
> ## setEnableTranscodeOnIngest method
> What return type?
Boolean, indicating enablement state.
> # Anywhere object
> ## listProductions method
> It says that the sample and the document are different.
?! Both the sample and the documentation indicate that an array of open Productions is returned.
> # Encoder object
> ## get
Copy link to clipboard
Copied
The PPro Scripting Guide receives frequent updates.
> Could you please update the functions listed in the type definition file below?
That file references every API function, most of which are already documented. Specifically, for which functions are you requesting additional info?
Copy link to clipboard
Copied
# Application object
## setEnableTranscodeOnIngest method
What return type?
# Anywhere object
## listProductions method
It says that the sample and the document are different.
Which return value is correct?
# Encoder object
## getExporters method
No document.
What type of array is return?
# Properties object
## clearProperty method
No document.
# ProjectItem object
## getAudioChannelMapping attribute
readonly or writable?
## getOverrideColorSpaceList attribute
readonly or writable?
## getFootageInterpretation method
Whet type is the vrHorizontalView and vrVerticalView?
# Component object
What is the stream type?
## properties attribute
What is ComponentParamCollection in the document.
# ComponentParam
## getValue method
What type is return?
## getValueAtKey method
What is the component parameter stream?
## getValueAtTime method
What is the component parameter stream?
## setInterpolationTypeAtKey method
What type is interpretationType.
And, Is the method name is correct?
## setValue method
What type is value?
## setValueAtKey
What type is value?
Copy link to clipboard
Copied
Okay, I've updated the TypeScript definitions in the sample; hope this is helpful. Some answers to your questions, in case they're useful to others.
> # Application object
> ## setEnableTranscodeOnIngest method
> What return type?
Boolean, indicating enablement state.
> # Anywhere object
> ## listProductions method
> It says that the sample and the document are different.
?! Both the sample and the documentation indicate that an array of open Productions is returned.
> # Encoder object
> ## getExporters method
> No document.
> What type of array is return?
That's confusing, because I do see the documentation, and it's correct; "Returns an array of available exporters, or null if no exporters are available."
> # Properties object
> ## clearProperty method
Documented. Only param = string indicating which property to clear. No return.
> # ProjectItem object
> ## getAudioChannelMapping attribute
> readonly or writable?
Read-only. A 'get' function should never, ever change that which is retrieved; PPro offers setAudioChannelMapping(), for making changes.
> ## getOverrideColorSpaceList attribute
> readonly or writable?
As above; no get function should modify that which is retrieved.
> ## getFootageInterpretation method
> Whet type is the vrHorizontalView and vrVerticalView?
Integers.
> # Component object
> What is the stream type?
That depends on the component being accessed.
> ## properties attribute
> What is ComponentParamCollection in the document.
A collection of parameters used by that component.
> # ComponentParam
> ## getValue method
> What type is return?
> ## getValueAtKey method
> What is the component parameter stream?
> ## getValueAtTime method
> What is the component parameter stream?
Those all depend on the component stream being accessed.
> ## setInterpolationTypeAtKey method
> What type is interpretationType.
Integer; see docs.
> And, Is the method name is correct?
Yes.
> ## setValue method
> What type is value?
> ## setValueAtKey
> What type is value?
Those depend on the parameter stream being modified.