BLOGS: My COW Blog Adobe Blog Editing Technology After Effects Final Cut Entertainment


Batch process file names with applescript

Just now I found myself with an angry Nuke install that wouldn’t recognize quicktimes unless they ended with “.mov” I have a few hundred linked files at this point, and thankfully most of them weren’t in nuke yet. What did I do? Well I mentioned finder “scripting menu additions” before, but this time I opened one up and tweaked it just a tiny bit to make it much much faster for the specific job I had to do.

The one I modified was “add to file names”. As it comes it brings up a popup box when called and asks you to type in your new text to add, and then asks you if you want prefix of suffix. That’s not really a lot of work, but it is a separate typing step and a mouse clicking step. That slows things down. I modified one line in the script so that it auto populates the text box with “.mov” and also has the default button set to suffix. That means I can call it and hit return and I’m done!

The code change is stupid simple. I added default answer “.mov” and default button 3 to the existing popup. Done. If I would have had more time I would have made it work recursively, so that I could do my whole directory structure in one blow, but that would have been more time coding than compositing, so I stopped there.

Posted by: Ross Daly on Aug 15, 2011 at 7:15:33 pm applescript, nuke

How to hijack the Mocha for AE tracker for use in other apps. (like NUKE!)

Mocha is awesome. Its inclusion in the CS5 suite is amazing, and I think it has really blown open the world of what entry level vfx artists (and even amateurs) can do. One problem with the AE-only version is that it is AE-only! It prevents (or rather doesn’t enable) you to use it with other apps. It exports its data in a specific format meant for after effects and it does a great job of that.

At work I am working my way through nuke, and it is really a pain to be able to use Mocha with AE but not nuke. The simplest fix would be to buy Mocha for nuke, but the powers that be haven’t done that yet, so I had to figure out a way. I got to thinking the other day, and tracking data at it’s simplest is only x,y points, so what is stopping me? It turns out that the only thing is formatting!

I whipped up a quick applescript to strip the x,y data out of the MochAE exported text file and put it into 4 separate txt files for nuke. It’s really that simple! One thing that you need to do in nuke is to set the y axis to (frame height-curve) because the two apps have a different coordinate system.

After all of this I have a passable workflow, but I want to stress that if you have enough dough to be using nuke, buy Mocha! This app is intentionally a little rough around the edges because I don’t like the idea of taking away anyone else’s business. It also isn’t a replacement for the standalone Mocha; it doesn’t offer any of the other (quite worthwhile) features. It’s a fun little hack, and hopefully it helps someone out of a jam somewhere, but if you need this, then you need to buy the full version of mocha!
Click here to download the MochAE to Nuke converter

Posted by: Ross Daly on Nov 12, 2010 at 7:29:59 am After Effects, nuke

Hello all, this is my little corner of "the cow"! I'm a vfx artist and I work in final cut, nuke and after effects. I love finding workflow hacks, and I'm always looking for a new keyboard shortcut! For more posts check out You Down With FCP
© 2019 All Rights Reserved