-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
# AE_tl_Conform_Tc | ||
Copyright Thomas Laforge | ||
|
||
|
||
To install : | ||
In your After Effect folder, Scripts/ScriptUI Panels copy the jsx and the jsxinc files. | ||
|
||
Help The conformation by Time Code. | ||
For exemple, the editor ouput an aaf of a (long) edit. used by AE and other softwares (davinci Resolve, nuke, fusion..) and at the end you have to collect eveything in your after effect project and to conform it. (assuming that the sequences from the other sofwtares keep the same time code). THe script will do it for you. | ||
|
||
1- import the AAF in your project | ||
2- Open and select the sequence created by the import | ||
3- Run the script | ||
in tge script menu | ||
4- Select folder containing the files to collect for the conformation (only files sequences are recognized). This step can be a bit long depending of the numer of files to analys. | ||
5-select the otpionnal settings you're interrested in | ||
6- Run the conformation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/** | ||
* Extends After Effects Objects for the Conformation script | ||
* @version 0.1 | ||
*/ | ||
|
||
|
||
//PROJET PART | ||
|
||
Project.prototype.findFolderWithName = function(name, createIt) { | ||
var create = createIt || undefined; | ||
var item; | ||
for(var i=1;i<=this.numItems;i++) { | ||
if (this.item(i) instanceof FolderItem && this.item(i).name === name){ | ||
item = this.item(i); | ||
break; | ||
} | ||
} | ||
|
||
if (createIt && !item) { | ||
item = this.items.addFolder(name) | ||
} | ||
|
||
return item; | ||
} | ||
|
||
|
||
Project.prototype.findCompWithName = function(name) { | ||
var item = null; | ||
for(var i=1;i<=this.numItems;i++) { | ||
if (this.item(i) instanceof CompItem && this.item(i).name === name){ | ||
item = this.item(i); | ||
break; | ||
} | ||
} | ||
|
||
return item; | ||
} | ||
|
||
//FOLDER PART | ||
|
||
/** | ||
* Retrieve all files recursively matching filter | ||
* @param {String|RegExp} filter | ||
* @returns {Array} Array of file Objects {temporary window} With progressBar | ||
*/ | ||
Folder.prototype.scanFilesWithProgressBar = function(filter) { | ||
var filelist = []; | ||
if (this.exists) { | ||
var files = this.getFiles(); | ||
|
||
var tempWindow = new Window('palette'); | ||
tempWindow.info = tempWindow.add("staticText",[0,0,200,50], "Scanning Files"); | ||
tempWindow.progressScan = tempWindow.add("progressBar", undefined, 0, files.length); | ||
tempWindow.progressScan.preferredSize.width = 300; | ||
tempWindow.show(); | ||
|
||
for (var i=0; i<files.length; i++) { | ||
tempWindow .progressScan.value = i; | ||
var file = files[i]; | ||
if (file instanceof Folder) { | ||
var list = file.scanFilesWithProgressBar(filter) | ||
for(var j=0; j<list.length; j++) { filelist.push(list[j]); } | ||
} else if (file instanceof File) { | ||
if (file.name.match(filter)) filelist.push(file); | ||
} | ||
} | ||
} | ||
tempWindow.close(); | ||
|
||
return filelist; | ||
} | ||
|
||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.