Magnum - The Edit Detector

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.

Magnum Screencast

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 further fixed detection algorithm - 02/2008
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


37 Responses to “Magnum - The Edit Detector”

  1. gautch said on January 18th, 2008 at 12:13 pm

    This is pretty sweet!! I can’t tell you how many times I’ve had to do this by hand.

  2. hannibal said on January 18th, 2008 at 6:23 pm

    Thank 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!

  3. Motionworks said on January 18th, 2008 at 6:45 pm

    Nice one Lloyd, I’ve been waiting for this. JD

  4. Motionworks » The Edit Detector said on January 18th, 2008 at 6:54 pm

    [...] 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 [...]

  5. Orlandont.com said on January 18th, 2008 at 10:50 pm

    Thanks for making this script available!

  6. Adam said on January 19th, 2008 at 7:32 am

    this is one of the coolest scripts I have seen. I have spend hours just hitting control + right for this task

  7. Helena said on January 20th, 2008 at 11:19 am

    Perfect! 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.

  8. Moe said on January 21st, 2008 at 4:18 am

    You CoderKids never cease to amaze!

  9. Capria.TV :: Edit detection in After Effects said on January 21st, 2008 at 12:41 pm

    [...] Alvarez posted Magnum - The Edit Detector to AE Scripts. The script will examine a layer in an After Effects composition and either break [...]

  10. thomas said on January 21st, 2008 at 7:28 pm

    oh 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.

  11. rav said on January 23rd, 2008 at 10:41 pm

    would love to have this work on my mac.

    looks amazing.

  12. ManuV said on January 25th, 2008 at 5:04 pm

    First, 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..

  13. lloyd said on January 25th, 2008 at 5:29 pm

    The 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.

  14. Adam said on January 26th, 2008 at 10:16 am

    This is so cool! Thanks so much!

  15. Bugh said on January 28th, 2008 at 7:18 pm

    That’s awesome…

    …so what will happen if I try to run it on CS2?

    -Bugh

  16. lloyd said on January 29th, 2008 at 9:48 am

    The 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.

  17. Flowseeker » Blog Archive » PVC: Piping More Signal, Less Noise said on February 1st, 2008 at 3:25 am

    [...] 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 [...]

  18. Jason Harmon said on February 1st, 2008 at 3:30 pm

    You 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.

  19. IndieV » Blog Archive » Magnum the Edit Detector said on February 3rd, 2008 at 12:24 pm

    [...] is where “Magnum the Edit Detector” script comes in. Lloyd Alvarez is the creator of this script and I can’t mention how [...]

  20. R-max said on February 4th, 2008 at 6:41 am

    Thank you very much for the script ……
    This 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

  21. After Effects Scripts » Blog Archive » Duplicate Frame Remover said on February 5th, 2008 at 6:24 pm

    [...] 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 [...]

  22. Paul said on February 21st, 2008 at 7:31 pm

    awesome stuff!!

    such a simple idea … so useful.

  23. John S. said on March 7th, 2008 at 2:08 am

    Hello,

    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..

  24. Final Cut Pro 2 After Effects « creative|ideas said on March 11th, 2008 at 2:50 pm

    [...] 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 [...]

  25. Daniel Bachler said on March 24th, 2008 at 5:11 am

    Magnum 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!

  26. Dallas AE User Group: March Meeting « creative|ideas said on March 28th, 2008 at 8:48 am

    [...] 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. [...]

  27. Final Cut to After Effect the FREE way! - The Church Media Community said on March 28th, 2008 at 11:01 am

    [...] 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 [...]

  28. GreleloDiof said on April 13th, 2008 at 6:12 pm

    I’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:

  29. henryb said on May 22nd, 2008 at 8:12 am

    Lloyd,
    Totally brilliant! You’ve automated my most dreaded chore.

  30. Manex said on May 27th, 2008 at 4:18 am

    Wow! This is something I’ve dreamed of for a long long time… No, I’m not joking, Is that bad? Anyway - thanks!

  31. david said on July 2nd, 2008 at 7:42 pm

    The 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.

  32. ceri said on August 4th, 2008 at 11:45 am

    yeah, this is SWEEET!!!!!! thank you, thank you.

  33. Erik Nordlund said on August 16th, 2008 at 11:35 am

    I LOOOOVE YOU!!!

  34. ali said on August 17th, 2008 at 7:06 am

    thank you

  35. Javier Vallas :: Creacion Digital :: Retoque digital :: Publicidad Creativa :: tutoriales photoshop :: .. » Programitas; video digital: Pluggin para After Effects CS3 said on September 2nd, 2008 at 2:06 pm

    [...] ::Descargar Magnun, The Edit Detector:: ::Ver video demo:: [...]

  36. Create Digital Motion » Edit Ninja: Super Fast Video Sampling Workflow with After Effects Scripting said on September 12th, 2008 at 9:15 pm

    [...] technique uses the following After Effects scripts: AEScripts‘ “Magnum - the Edit Detector” Reverse Selected Layer Order Precomp to Layer Duration Redefinery’s RenderLayers and [...]

  37. Hannes said on September 29th, 2008 at 3:45 pm

    Hi, you should definetly put a readme-file to the .zip where people with different languages are informed about the -L ENG trick!

    Btw.: THIS IS A GREAT THING! :D

Leave a comment

RSS feed for comments on this post · TrackBack URI

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>