Mocha Tracks In Natron?


#21

In your opinion, is that something simple as converting commands throughout the script (Nuke to Natron commands) or is it more intensive like rebuilding the entire script?


#22

Well our Python API is close to what Nuke’s one is so it’s just a matter of translating Nuke API calls to Natron ones. It’s just a matter of finding a volunteer that has Python skills.


#23

Awesome, thanks for the quick reply and clarifying that. Unfortunately, I don’t have the Python skills to pay the bills but I am actively searching for that special someone (a volunteer, that is)


#24

Just trying the Mocha OFX plugin on Natron OS X. Everything loads find but one the mocha node is in, the project just freezes, no playback anymore even if mocha node is removed. Mocha UI works find and launches correctly with the footage. Any idea how to fix this?


#25

Mocha only supports Nuke and Fusion.


#26

@ElDirector are you running the Mocha OFX plugin on Windows? Is it all working fine?


#27

I’m using it on Windows. Everything works fine, except for being able to use the data. Otherwise, no issues.


#28

@ihabali I just checked on OSX and I have the same problem, even though few months back it was working. I think it was earlier versions of either or both natron 2.x and mocha 5.


#29

I’ve never had it actually working fully yet. I can do a track, but have yet to find a good output format to copy the data to that Natron can use. So Mocha itself works great in Natron, but I can’t use the data that I generate.


#30

maybe wait and see if python becomes available on mocha OFX plugin ? Or is it that python scrpting is there but only the python editor not?

I had a look at the plugin bundle for Mocha OFX on Apple and dont see a python executable inside it.


#31

Or working with current capability, exporting from Mocha as Nuke Corner Pin to clipboard gives this:
CornerPin2D {
to1 {{curve x1 1660 x2 1657.28 x3 1654.37 x4 1652.11 x5 1649.17 x6 1646.19 x7 1642.47 x8 1638.95 x9 1636.42 x10 1635.04} {curve x1 862 x2 860.555 x3 858.117 x4 854.752 x5 852.21 x6 850.018 x7 848.369 x8 848.206 x9 846.645 x10 842.799}}
to2 {{curve x1 1808 x2 1804.75 x3 1801.33 x4 1798.59 x5 1795.2 x6 1791.78 x7 1787.68 x8 1783.73 x9 1780.81 x10 1779.07} {curve x1 862 x2 860.626 x3 858.229 x4 854.515 x5 852.094 x6 850.105 x7 848.895 x8 849.35 x9 848.111 x10 844.201}}
to3 {{curve x1 1808 x2 1804.58 x3 1801.17 x4 1798.38 x5 1795.01 x6 1791.57 x7 1787.24 x8 1783.07 x9 1780.17 x10 1778.44} {curve x1 916 x2 914.497 x3 912.083 x4 908.163 x5 905.479 x6 903.746 x7 902.668 x8 903.121 x9 902.185 x10 898.469}}
to4 {{curve x1 1660 x2 1657.11 x3 1654.22 x4 1651.9 x5 1648.98 x6 1645.98 x7 1642.03 x8 1638.28 x9 1635.78 x10 1634.41} {curve x1 916 x2 914.426 x3 911.971 x4 908.4 x5 905.594 x6 903.66 x7 902.142 x8 901.977 x9 900.72 x10 897.066}}
from1 {0 0}
from2 {{width} 0}
from3 {{width} {height}}
from4 {0 {height}}
name CornerPin2D_Layer_1
}

This can be read into a python string in Natron and parsed to create a Natron Corner pin.


#32

Also @ElDirector can u confirm u dont have BCC suite? It has a corner pin node that Mocha can export to


#33

@Krista
Maybe I am way off, but when its is urgent with your project and you have to use Mocha; Mochablend is a possible quick solution. Though it will cost some money.


Or try tracking with Blender first.

edit.
Maybe a better link.
http://goodspiritgraphics.com/software/products/mochablend/mochablend-blender/intro/


#34

Correct, I don’t have that suite. I’ll look into it though if there’s a chance it might work


#35

To add my tuppence worth to this discussion…I am not bothered about having a Mocha plugin for Natron - my ideal would be to do my motion tracking in Mocha…save data (to a txt file or some other format) then import it into a Natron Corner Pin node. et viola…easy! :wink:


#36

Either way, same issue lol :wink:


#37

I can confirm that Mocha OFX works with all features including tracking, roto, insert, stabilizer and remove etc. working out of the box, no need of copy and paste.
Well I haven’t tried everything, but it appears that the plugin is able to transfer everything to Natron.

Natron did crash a few times though


#38

You were able to get the data to actually transform the image in the nodegraph?


#39

Yes…perfect insert.
The mocha plugin has an insert connection, you need to supply it with an image that you want to replace with. Once inside Mocha, you do you tracking and use the insert module and save.
you can then use the render insert to allow mocha to pass the data to Natron.

The same technique works in Resolve Studio although its not officially supported yet.

In Nuke it can also pass the 3d solver data.


#40

Just wrote simple program to convert Mocha data to Natron format.
Executable is here: https://github.com/madblock/mocha2natron/blob/master/bin.zip
Works on Windows.