Magnum - The Edit Detector
This script automatically detects edits in footage. To use it you simply select a footage layer in a comp, set the work area to the region you’d like to find edits and tell Magnum to go to work! Magnum can then split the layer at each edit point or set layer markers where the edits are. It works very well at the default detect level, but tricky footage might need this adjusted.
Watch the screencast for usage example. There is also a built-in help.
If you want to run the script from the Window menu like I show in the screencast, you need to put the script inside a folder called ScriptUI Panels inside the Scripts folder.
If a ScriptUI Panels folder does not exist you will need to create it.
To run the script select it from the WINDOW menu (instead of the Scripts menu). Once the script palette opens you can drag it and embed the panel and it will be saved with your workspace.
The BG Renderer screencast shows how to do the installation.
| Download: Magnum_The_Edit_Detector (Requires After Effects CS3 or higher) |
version history (click ? on the script palette to find the version):
1.04 fixed detection algorithm-DO NOT USE 1.03 as it yields too many false positives!
1.03 optimized cut detection algorithm, fixed no selected layer bug - 02/2008
1.02 minor bug fix that incorrectly identified Comp’s as a null - 01/2008
1.01 minor bug fix to add error correction for null and stretched layers - 01/2008
1.0 initial release - 01/2008
[?]



This is pretty sweet!! I can’t tell you how many times I’ve had to do this by hand.
12:13 pm - January 18th, 2008Thank you very much for the Magnun script. As you know this is a fairly frequent operation in AE so this is a real life/time-saver. Brilliant work!
6:23 pm - January 18th, 2008Nice one Lloyd, I’ve been waiting for this. JD
6:45 pm - January 18th, 2008[…] Alvarez has just released a free script that will detect the edit points in a footage layer then split the layer at those points. This is a […]
6:54 pm - January 18th, 2008Thanks for making this script available!
10:50 pm - January 18th, 2008this is one of the coolest scripts I have seen. I have spend hours just hitting control + right for this task
7:32 am - January 19th, 2008Perfect! You’re a genius. Adobe owes you a cool two-hundred grand for your app! Make ‘em pay you, cuz a lot of folks will love using this in AE.
11:19 am - January 20th, 2008You CoderKids never cease to amaze!
4:18 am - January 21st, 2008[…] Alvarez posted Magnum - The Edit Detector to AE Scripts. The script will examine a layer in an After Effects composition and either break […]
12:41 pm - January 21st, 2008oh man you are the bomb. how does this work??!??! never mind, it works. it works well. it aced some pretty tough test clips i gave it, including a black and white cartoon where most of the shots were very similar. nice work, i can’t thank you enough.
7:28 pm - January 21st, 2008would love to have this work on my mac.
looks amazing.
10:41 pm - January 23rd, 2008First, sorry for my poor english and thank you so much for this awesome script
I finaly succeed to run it on my french version of after effects after many tries.
In foreign languages, after use other name for the expression effects.
For exemple, “slider effect” appears as ‘Paramètre glissière’
and the property “slider” appaears as ‘Curseur’
And the script stop without any warning after the first error.
So I ues index instead of name at lines
180: myThresEffect.property(1).setValue(threshold);
185: myExpEffect.property(1).expression …….
190: “thres=effect(2)(1);\n” +
It’s working great now for me. But i’m not a code writer, so if anyone wants to correct me..
5:04 pm - January 25th, 2008The script is not localized, so it will only run properly when AE is run in english. If there is enough interest I could modify the script so that it can be localized and then maybe ask for volunteers to do some translating.
5:29 pm - January 25th, 2008This is so cool! Thanks so much!
10:16 am - January 26th, 2008That’s awesome…
…so what will happen if I try to run it on CS2?
-Bugh
7:18 pm - January 28th, 2008The script relies on a new CS3 only function called sampleImage which is what allows me to analyze the images and determine if there is a cut or not, so unfortunately it won’t work on After Effects 7 or below.
9:48 am - January 29th, 2008[…] beta, and I’ve just added an entry there about my favorite new free After Effects script, Magnum, and how Adobe needs to encourage more of that kind of thing. I’m looking forward to seeing […]
3:25 am - February 1st, 2008You rule. This will save me a ton of time. I have to break up QT files by hand about 20 times in a normal production month. Awesome, Awesome, Awesome.
Thanks.
3:30 pm - February 1st, 2008[…] is where “Magnum the Edit Detector” script comes in. Lloyd Alvarez is the creator of this script and I can’t mention how […]
12:24 pm - February 3rd, 2008Thank you very much for the script ……
6:41 am - February 4th, 2008This is possible to create a script to import a final cut project. ?
I see one script : FCPTOAE but it’s not very cool
I prefer to asking you because you very strong
hehehe
thnak and sorry for my english
RMAX
[…] on a request over at http://aenhancers.com and using the same engine i built for Magnum this script scans the footage and removes the duplicate frames by setting hold keyframes on the […]
6:24 pm - February 5th, 2008awesome stuff!!
such a simple idea … so useful.
7:31 pm - February 21st, 2008Hello,
For people who use Final Cut: I’ve found this tool for scene detection:
http://www.scene-detector.com
Didn’t try it though.. Not free, alas..
2:08 am - March 7th, 2008[…] a .jsx that AE can import. It’s free but I haven’t tried it to see how well it works -Magnum AE Script: An AE script that “automatically” detects scene changes and split the layers […]
2:50 pm - March 11th, 2008Magnum does not work with my french/german/… version of AfterEffects?
Solution (windows): At your desktop or your quickstart bar, right click the shortcut of your After Effects installation, select Properties. Under Target, where you see the path to AfterFX.exe, ADD the following text at the very end, behind quotes if present:
-L EN
This will start After Effects with english as a menu language and everything will work fine, no messing around inside the script required. Of course, you now have to use After Effects in english and your settings will be reset.
P.S: Great script, thanks a lot!
5:11 am - March 24th, 2008[…] 3. Magnum the Edit Detector. This script auto detects scene changes from a video layer in AE. The script gives you a sensitivity fader then it goes to work. It will either split your layer up or leave markers. If you don’t like it’s results you just undo, adjust the sensitivity fader and try again. Depending on the format and speed of your computer it may or may not be quick. But if you don’t have a FCP file to work from this script can save you some work. […]
8:48 am - March 28th, 2008[…] I do they work well. If you’re working in an editor that can’t export an XML file. You can try Magnum Edit Detector. It scans your video layer and will “auto” detect any scene changes. I found it to work quite well […]
11:01 am - March 28th, 2008I’d prefer reading in my native language, because my knowledge of your languange is no so well. But it was interesting! Look for some my links:
6:12 pm - April 13th, 2008Lloyd,
8:12 am - May 22nd, 2008Totally brilliant! You’ve automated my most dreaded chore.
Wow! This is something I’ve dreamed of for a long long time… No, I’m not joking, Is that bad? Anyway - thanks!
4:18 am - May 27th, 2008The easyest way to run AE in English is to open the LANGUAGES Subfolder and Select the English Version. Basically, this does nothing more than putting the -L EN Addition to the Shortcut, but its already prepared and ready to go.
7:42 pm - July 2nd, 2008