Jsx functions for Adobe CEP autoEdit adobe Panel
Can use the Property explorer extension to figure out what methods and properties are available. Installing with creative clouds, it becomes available under window, extensions, in Premiere.
Node path issue in adobe CEP
As explained here
Adobe CEP requires absolute path for nodejs, this is a problem when requiring modules, as you can no longer use relative path eg
But you need to use
This does not seem like much of a change, but if you have code where you want to keep you modules portables, and/or perhaps you are porting an application into the adobe CEP environment (eg like from electron in the case of autoEdit.io) then it involves a fair bit of tedious refactoring.
This solution of setting the process cwd()
using chdir()
seems to have work fine on mac.
However need to test if this works on windows, or if need to use the path node module to adjust for osx vs win path slashes differences.
Adobe Functions
✅Project Panel: Get information of selected media in premiere project panel
Returns project item object (?) with information of what file you have selected -- useful for automatic transcription or any other functionality where you want to operate on premiere clip source files.
also relevant thread
Only available in Premiere 12.1
✅Source monitor: Load external file into source monitor
A function to load a media file into the source viewer programmatically. For example connected with one above, once it know what click is selected in source project panel can load media into source monitor viewer,
From sample app
✅Project Panel: Search/find clip using file name or path in project panel
a function to be able to find clip using file name or path in project panel eg to see if they have been added to the project
Here is some code from adobe Bruce about finding the clip with the same path in project panel:
(?) Finding a clip that might be inside a bin
Finding a clip that might be inside a bin, with custom function searchBinForProjItemByName
From Finding a bin with Project.findItemsMatchingMediaPath()?
example usage of the function
✅Source Monitor: Load media into source monitor
a function to be able to load media into source monitor viewer programmatically.
Is there a direct way to do this? Or need to get the media eg from project panel and then get the file path eg using .getMediaPath();
?
Which could then be used with the code from the openInSource
function example above.
❓Source Monitor: Get information of current clip in monitor
Seems like this might not be possible?
✅Source Monitor: Set in and out points
Set in and out point for clip in source monitor programmatically Seems like you set the in and out on the clip in project panel and then that is also show in the source monitor(?) See below.
✅Project panel: Set in and out point of file
I.e. set in points on a particular project item that is only in the project panel, not in the source monitor. I think in the end what we will have to do is set the in and out here (as I think that is possible but it is not in the source as far as I can tell). So the workflow would be you open the transcript in autoedit -- it opens the correct file in the source monitor, when you make an edit it finds the clip with the same path in the project panel, sets in and out points, and then brings it into the sequence.
inPoint and outPoint seems to set them in ource monitor! Unclear whether setStartTime changes the timecode metadata for the clip. Eg instead of starting at zero, you can add an offset. Think rec un, freerun, time of the day timecodes for timecodes generates by camcorders.
✅ Project panel: Import clip from Project Panel into sequence
Code for bringing into sequence can be found in the sample panel JSX under the insert or append and overwrite functions
✅create sequence programmatically from list of clips
Provided a list of clips, with in and out points for each segment, would want to create a sequence from it.
Is there a way to do this or do we have to combine previous insert/append function to achieve same result?
From sample app, here is how to create a sequence
Get active sequence
From sample app
See autoEdit jsx file `create_sequence_from_paper_edit` for how to iterate over a sequence as described in the autoEdit edl composer component.
Below how you’d add one clip, then, you’d need to iterate and change the insert timecode.
✅ Sequence: Import clip from source monitor into sequence
✅sequence: Adjust timings of clips in sequence
From Adobe's Forum this seems to trim clips in the sequence;
But not sure exactly what the code does.
✅Sequence: Replace media for sequence clip
Exists in pond5 panel -- can be used to replace low quality footage with higher quality or replace placeholders with real footage
✅Source monitor: scrub to position and play
We are using a js function to convert from seconds to seconds.frames format:
✅Active Sequence/Program: scrub to position
✅Import files into bin
✅Export as FCP XML
From sample app:
Last updated