Here is the GitHub link for the code – just select the text, copy it then, then paste it into Nuke’s Script Editor panel. You can wrap this up into a menu item to give your Nuke install permanent access to it as a function (I may update this post as to how, but until then try here), or the simplest way to run it is to just copy the code below and run it via Nuke’s Script Editor panel. The Mocha AE CC Plugin interface is almost exactly the same as the standalone interface, so most of the usual guide and video tutorials can be applied to the plugin. If you know any ways to improve its functionality, please leave comments below.Īs with the previous version, this assumes you have used the “After Effects Corner Pin (*.txt) “ I will give the disclaimer that it is literally the first thing I have ever written in Python, so I’m sure that it could be more efficient. There are some great online resources such as The Foundry’s website and Nukepedia, and I find Python quite a simple and logical language to learn. I was surprised how quickly this came together. I also wanted to extend the script to create a CornerPin node as well as a Tracker node. as well as some Nuke specific functions like creating nodes and adding animation data. This would force me to cover some Python basics such as importing files, parsing strings to generate arrays etc. My first project was to re-create my Mocha-AE import script, but have it run natively within Nuke. Well I had a quiet spell over the last couple of days and thought I would use it to learn Python. Mocha Pro is the current supported way to get Mocha tracking data to Nuke – please don’t use my hacky script as a stand-in for this great piece of software.Ī while ago I wrote a PHP script that takes the tracking data generated by Mocha-AE (the version of Mocha that comes bundled with After Effects) and converts it to Shake and Nuke nodes. I have since been working at bigger facilities that use full Mocha Pro licences, so have not needed to use the script. As I stated in my original post, the PHP version of the script was a one-off fix for a small job where the facility I was working in did not have a full Mocha licence and I needed a quick solution. I must emphasise that this was a test project for me to learn Python for Nuke – what the script is doing is probably in violation of the Mocha end user agreement. This is an update to my original post Convert “Mocha for AE” tracking data to Shake / Nuke nodes
0 Comments
Leave a Reply. |