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.


# 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.
# Diogo Girondi 2010-09-29 01:19
Good idea Frank!

I'll do that and update this ;-)
# 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.
# 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
# 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.
# ross daly 2016-03-15 20:55
it looks like this is causing trouble with the frameserver on recent builds.
# ross daly 2016-03-15 21:17
fwiw it seems like the error comes from the 1.0 version, not the 1.2
+1 # 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)
# waseem otybi 2019-01-23 06:41
i have windos10 nuke 11 where i have to put the file ??

what is the path ??


You have no rights to post comments

We have 2729 guests and 95 members online