Download the ssf importer and put it in your MacOS/plugins/ directory (there are two plugins directories created on the Mac at install for some reason, make sure you use this one. On the PC should simply be the /plugins/ directory).
Find your toolbars.py file (see instructions in Part 2) and add this to The "Draw" Menu:
ssfFileName__ = nuke.getFilename("Shake Shape File", "*.ssf"); ssfString = 'nuke.tcl("import_ssf ' + ssfFileName__ + '; return")'; eval(ssfString)
m.addCommand("SSF Import", "nukescripts.py_ssf_import()", icon="Bezier.png")
EXTREMELY IMPORTANT: The bold line, (from ssf_FileName to eval(ssfString)) is a single, wrapped line, and it MUST be indented 4 spaces from the left, or copy and paste from the attached txt file.
PART 2: Mocha Tracking Data Import (much less beta version)
Download attached mocha_import.txt file, rename to mocha_import.py ... save it to your ../site-packages/nukescripts/ directory (search for my earlier post of autobackdrop.py if you don't know where to find this).
Open the __init__.py file you'll find there and add from mocha_import import * to an appropriate line (I just keep them in alphabetical order).
Open toolbars.py and add this line m.addCommand("Mocha Import", "nukescripts.mocha_import()", icon="Tracker.png") to the bottom of the section that starts with # The "Transform" menu.
You're now installed, restart Nuke.
To test track a shape in Mocha, adjust track if desired, and use the Export Tracking Data button on the bottom of the tab you're on (don't know if this matters, but I used the one on the Adjust Track tab just to be safe after doing the adjust, as I believe the Export Tracking Data button on the Track tab may export the data for the un-adjusted track only).
EXPORT AS A SHAKE SCRIPT .SHK FILE
Open Nuke, hit the fancy new button, and when the file browser pops up find and selected your just exported Shake file.
Should pop up a new Tracker node with the tracks in place, Transform Rotate and Scale turned on, all four tracks enabled, and the Label set.
Couple of caveats:
1) put in some logic that MAY work if the mocha track does not have info on all keyframes, but haven't had a chance to test it. Let me know what happens if you try this (btw, if you have Script Editor window open when you run this you'll get some useful error messages if it all goes Michigan ... copy and paste those into any error reports you send me.
2) Not that much of a genius with Mocha yet, but it APPEARS that it'll only export one layer/shape at a time ... that's good, cause this will only load one, and what its actually doing is loading the points for the four corners of the Surface, so make sure that's what you're after.
3) This isn't designed to import Shake scripts directly, but I'm guessing if you were to throw a single shake CornerPin or MatchMove node (NOT A STABILIZE) through it it might very well work ... again test and let me know. (Reason why Stabilize won't work is that this routine truncates the export from Mocha to only the top node of the three in the .shk (mocha provides you with a CornerPin, Stabilize, and Matchmove for you in one export) so that I'm not trying to work with 12 trackers. I might improve the way this works in the future, if I have time.
4) Nuke is doing the actual calculation of Scale, Rotate, Center, etc for matchmove ... results may differ from Mocha, but I haven't been able to figure out how Mocha is exporting that anyway to Shake, so probably not much of a change if any. Only export that properly throws that all out is the AE one, but that rounds funny and I figured going off the Shake one would make more sense to most people.