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

[?]

31 Responses to “Magnum - The Edit Detector”

  1. gautch said...

    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, 2008
  2. hannibal said...

    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!

    6:23 pm - January 18th, 2008
  3. Motionworks said...

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

    6:45 pm - January 18th, 2008
  4. Motionworks » The Edit Detector said...

    […] 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, 2008
  5. Orlandont.com said...

    Thanks for making this script available!

    10:50 pm - January 18th, 2008
  6. Adam said...

    this 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, 2008
  7. Helena said...

    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.

    11:19 am - January 20th, 2008
  8. Moe said...

    You CoderKids never cease to amaze!

    4:18 am - January 21st, 2008
  9. Capria.TV :: Edit detection in After Effects said...

    […] 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, 2008
  10. thomas said...

    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.

    7:28 pm - January 21st, 2008
  11. rav said...

    would love to have this work on my mac.

    looks amazing.

    10:41 pm - January 23rd, 2008
  12. ManuV said...

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

    5:04 pm - January 25th, 2008
  13. lloyd said...

    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.

    5:29 pm - January 25th, 2008
  14. Adam said...

    This is so cool! Thanks so much!

    10:16 am - January 26th, 2008
  15. Bugh said...

    That’s awesome…

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

    -Bugh

    7:18 pm - January 28th, 2008
  16. lloyd said...

    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.

    9:48 am - January 29th, 2008
  17. Flowseeker » Blog Archive » PVC: Piping More Signal, Less Noise said...

    […] 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, 2008
  18. Jason Harmon said...

    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.

    3:30 pm - February 1st, 2008
  19. IndieV » Blog Archive » Magnum the Edit Detector said...

    […] 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, 2008
  20. R-max said...

    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

    6:41 am - February 4th, 2008
  21. After Effects Scripts » Blog Archive » Duplicate Frame Remover said...

    […] 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, 2008
  22. Paul said...

    awesome stuff!!

    such a simple idea … so useful.

    7:31 pm - February 21st, 2008
  23. John S. said...

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

    2:08 am - March 7th, 2008
  24. Final Cut Pro 2 After Effects « creative|ideas said...

    […] 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, 2008
  25. Daniel Bachler said...

    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!

    5:11 am - March 24th, 2008
  26. Dallas AE User Group: March Meeting « creative|ideas said...

    […] 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
  27. Final Cut to After Effect the FREE way! - The Church Media Community said...

    […] 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, 2008
  28. GreleloDiof said...

    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:

    6:12 pm - April 13th, 2008
  29. henryb said...

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

    8:12 am - May 22nd, 2008
  30. Manex said...

    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, 2008
  31. david said...

    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.

    7:42 pm - July 2nd, 2008

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>