Skip to content

Commit

Permalink
master 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
crazylafo committed Sep 8, 2017
1 parent d0298c1 commit 802e58a
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
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.
74 changes: 74 additions & 0 deletions libtl_Conform_from_Tc.jsxinc
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;
}



1 change: 1 addition & 0 deletions tl_Conform_from_Tc.jsx

Large diffs are not rendered by default.

0 comments on commit 802e58a

Please sign in to comment.