Send To Mocha v1.2

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Diogo Girondi
Opens the file of a node in Mocha.
5.1, 5.2, 6.0, 6.1, 6.2, 6.3 or later
Linux, Mac, Windows
18 May 2012

Opens the selected node file in Mocha.


send2mocha( nuke.selectedNode(), '/Applications/mocha'  )

Please login in order to download these files.


0 # Frank Rueter 2010-06-20 15:12
you could make the location of mocha an argument, so people don't have to edit the code, just call the function with the location of their mocha install.
0 # Diogo Girondi 2010-09-29 01:19
Good idea Frank!

I'll do that and update this ;-)
0 # Marijn Eken 2011-01-26 15:03
And what if that read node is reading in an .R3D file??? ;-)

Would be nice if that could be handled automatically as well.
0 # mr. dfuzion 2012-05-18 02:03
Script doesn't work. OSX 10.7.4, Nuke 6.34

'module' object is not callable
Traceback (most recent call last):
File "", line 1, in
TypeError: 'module' object is not callable
0 # Diogo Girondi 2012-05-18 03:23
That's odd mr. dfuzion. It should be working just fine. I run OSX 10.6.8 and W7 at home and OSX 10.7.4 and CentOs at work and it works just fine in any of them. Make sure you're sourcing the script correctly and passing the correct arguments.

Marlj Eken currently Mocha doesn't support R3D files as you probably know but I'll include a check to warn users before trying to send R3D files to Mocha and have things breaking. Once I find some free time for v2 of this I'll add something that automatically converts the R3D to something that Mocha supports before sending the file.
0 # ross daly 2016-03-15 20:55
it looks like this is causing trouble with the frameserver on recent builds.
0 # ross daly 2016-03-15 21:17
fwiw it seems like the error comes from the 1.0 version, not the 1.2
+2 # Magno Borgo 2012-11-24 14:36
Hi! I would like to suggest a simple change that I'm using here. Changing node.knob('file ').value() to nuke.filename(n ode) will allow the use of filepaths that have TCL/python code on path

filename = nukescripts.rep laceHashes( nuke.filename(n ode) ) % node.firstFrame ()
except TypeError:
filename = nuke.filename(n ode)
0 # waseem otybi 2019-01-23 06:41
i have windos10 nuke 11 where i have to put the file ??

what is the path ??

0 # Lee Watson 2022-01-17 12:02
Can this be updated for Nuke 13.1 (python 3) ??
0 # Nelson Piquet 2022-02-27 21:49
How do I install this?
0 # yuri carrara 2022-07-13 15:33
popopen will prevent nuke from wait to mocha to be closed by opening a terminal instance

from subprocess import Popen, PIPE, STDOUT

Popen(cmd, stdout=PIPE, stderr=STDOUT, shell=True)

You have no rights to post comments

We have 3707 guests and 134 members online