mmColorTarget v3.1


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Marco Meyer
Matches colors of two input images or neutralizes to a reference colorspace target using one of the common color charts (eg. MacBeth ColorChecker)
Requirements:
13.1, 12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11.0, 10 or later
Linux, Mac, Windows
06 Jun 2021
11438

Useful Nukepedia Tool #8. Explore this video:   Tool Video

Usage:

- Make sure you have Numpy installed, compatible and accessible with your Nuke version. (see Blogpost with additional Information )

- Plug two images showing a MacBeth Colorchecker into the source and target inputs.

- Corner Pin the source and target sampler to its corresponding ColorChecker and adjust the sampler Size

- (Switch inputs using the 'currentView' dropdown)

- Hit the 'Calculate Matrix' Button to get the output ColorMatrix.

Demo Video

 

Change Log:

v3.1
- FIX: Chromatic adaptation was not performed. This caused the reference values to be slightly off for colorspaces with non-D65 whitepoints. An updated JSON file with additional data is provided that is required for this fix.

v3.0
- BREAKING: Using colorspace transforms to retrieve the reference values instead of the hardcoded patch values. This allows easier addition of future colorcharts by only adding their sRGB reference values. This change will deprecate the use of the mmColorTarget_colorspaces.json file and will start using mmColorTarget_colorspace_transforms.json instead.

- Support for colorcharts:
   - ColorChecker24 - Before November 2014 (ColorChecker2005)
   - ColorChecker24 - After November 2014
   - SpyderCHECKR 24
   - ColorChecker Passport Video
- Python 3 support
- Added normalization option

v2.0:
- More intutive UI with callbacks
- Fixed a problem introduced in Nuke 9.0v8 that broke the entire functionality
- The reference target now comes with a dynamic colorspace selection instead of fixed sRGB Values. (generously provided by Thomas Mansencal at colour-science.org)
- Additional sampling method 'no clip' (EXPERIMENTAL!)
- More stability due to no more expression-based-sampling in the background 

 

Tested successfully on Windows 7/10 (Nuke 7-9) and CentOS 6/7/8 (Nuke 7-13)

Mac Users: The Gizmo should also work on Mac, but you need to find/compile a compatible version of numpy yourself, since i don't have a Mac. Check the UNT Video for an example installation.

screenshot

 

Please login in order to download these files.

Comments   

 
0 # Jason Huang 2014-05-06 10:11
Thanks so much!!! I am screaming if it is what I think it is that can save me from buying HDR Shop 3.0 for $200 and just for this particular feature.... :D
 
 
0 # Manuel Flemming 2014-05-06 17:29
Thanks a lot! That's very useful!!
 
 
0 # Daniel Brylka 2014-06-21 10:42
Failed to try this on Nuke8 OSX, I found NumPy (not the latest version as a .DMG), installed it, Python 2.77 itself on the system can import "NumPy", but inside of Nuke I get just an error that it is not finding it. Can someone tell me what else I need to do?
Thanks

Daniel
 
 
0 # Marco Meyer 2014-07-01 10:03
the easiest way to test would be to copy the numpy folder that's located in your python site-packages (on OSX it should be something like "/Library/Pytho n/2.7/site-pack ages") to your "/Users/YOURNAM E/.nuke" folder and try "import numpy" again.

the other way would be to add the following to your init.py file:
import sys
sys.path.append("/Library/Pytho n/2.7/site-pack ages")

It's still possible that you'll get an error if the compiler version doesn't match, which is the point where i can't help any further, since I didn't get enough feedback from Mac users yet. But it should at least find the module now and tell you what's going on.

I hope it helps, and please share your information if you suceeed.
Marco
 
 
0 # guillem ramisa 2014-09-20 16:31
Hi Marco,

I've found the NumPy installer (1.6.1) for Python 2.7 for Mac. I'm running a mac osx 10.6.3 with NukeX 8.0.3.

http://stackoverflow.com/questions/7338051/install-numpy-on-mac-os-x-lion-10-7

It works fine with osx 10.6

I've checked in the OSx command line if the package got installed and yes, it worked and found all the files

I found the folders inside "/Library/Pytho n/2.7/site-pack ages" and copied to: .nuke/Framework s/Python.framew ork/Versions/2, 7/lib/python2.7 /site-packages" I'v copied there the numpy folder.

When I load the gizmo, it works well but when I try to calculate the matrix there it appears an error: " .../site-packag es/numpy/core/m ultiarray.so: no matching architecture in universal wrapper "

I've tried importing with the init.py command but it does not work.
import sys
sys.path.append("/Library/Pytho n/2.7/site-pack ages")

Is there any way I can fix it??or I'm doing something wrong..?
I would appreciate any help.

Thanks Marco and amazing gizmo!

- Guillem R.
 
 
0 # Marco Meyer 2014-09-23 20:27
Looks like there's a 32bit/64bit-pro blem. Your numpy has to be 64bit to run with nuke, i guess.
You might wanna check any of those solutions:
http://stackoverflow.com/questions/4527338/how-to-install-numpy-and-scipy-on-os-x

Have you already tried any of the official installers for osx10.6? For example:
http://sourceforge.net/projects/numpy/files/NumPy/1.7.2/numpy-1.7.2-py2.7-python.org-macosx10.6.dmg/download

Providing google help is really the best i can do right now :(
 
 
+1 # guillem ramisa 2014-09-25 16:27
Yeah! It worked perfectly!

Very thanks Marco! I've been searching for this for a long time!
I'm the first Mac user to get this working??


I've just added the new site-packages created on the /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

Never underestimate google help :-)

Thanks again!!
 
 
-1 # Marco Meyer 2014-09-26 16:55
Awesome, glad to hear that :)
Well you're not necessarily the first Mac user ever to get it working, but you sure are the first to give me some positive feedback.
So thanks a lot for sharing!
 
 
+1 # Dani Kei 2014-10-08 12:07
Hey, would you mind uploading the "site packages" that works on mac? I'd love to get numpy working and mmcolortarget !!! Or writing a small explanation on how you got it to work!
 
 
-1 # Iván Martínez 2015-05-18 17:03
Awesome Marco Meyer.
Could you give us a tip for work with spydercheckr 24 without hide 2 rows ( it are inverted in this color card) :sad: (second color and grey)
Thank you!!
 
 
-1 # Thomas Mansencal 2016-01-14 04:31
Well, you could still manually crop and flip the offending rows to match XRite / GretagMacbeth colour rendition charts, however I would not do that because there is no guarantee that the samples between the two brands have the same colours. This need to be checked before doing any colour fitting.
 
 
+1 # Dennis Serras 2015-07-10 23:24
Thanks for the tool, it is a good design and well made. I tested it by taking a color chart, messing up the colors, then bringing it back into Nuke. I found two issues worth addressing:

1. It does not manage levels well - I would look at adding an exposure, levels, or some other way of balancing brightness before applying the chart. I fixed that by manually adjusting levels first.

2. It crashes in Nuke 9.0.3. Numpy works in 9 OK - I was able to test it - so something else isn't working.

Thanks again!
 
 
-1 # Jed Smith 2020-01-25 18:03
Quoting Dennis Serras:

1. It does not manage levels well - I would look at adding an exposure, levels, or some other way of balancing brightness before applying the chart. I fixed that by manually adjusting levels first.


I was running into the same need - I created a new version of the tool that allows chrominance calibration without affecting luminance if you're curious to try it out:
https://gist.github.com/jedypod/798b365ea64e8121999e7036ae7e0217
 
 
+1 # Tigran Stepanyan 2016-04-19 16:48
How can i fix this problem?
Quote:
/usr/local/Nuke9.0v8/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /lib64/libgfortran.so.3)
 
 
+1 # Daniel Brylka 2016-05-22 10:11
Hi,

I found this morning the new video. Thanks for making it. I followed along on OS X 10.11.5 with Nuke 10.0v1 Non-Commercial.
I still can't make it work.

The gizmo is coming with a .json file, is that also belonging in the gizmos folder?

When I hit "calculate" I get the following error:
'NoneType' object has no attribute 'knob'

Did I install it okay? Is there a way to check inside of Nuke?
And what does this error message means?

Thanks in advance,

Best regards

Daniel (toodee)
 
 
-1 # Frank Rueter 2016-05-22 23:01
Sounds to me like the Non-Commercial restrictions in the python interpreter are causing this.
 
 
-1 # Daniel Brylka 2016-05-23 08:48
Thanks Frank,

you are right, in the normal licensed version it works fine.
Thanks.
It would be nice that the Foundry would actually give the user some hints, that a restriction causing an error in the NON-COM. version.
 
 
+1 # Jason Freets 2016-09-03 07:56
I'm using Nuke10 Non-Commercial and can't get this to work in either Linux or Windows:

Current problem is:

'NoneType' object has no attribute 'knob'.
 
 
0 # Brendan Coyle 2016-12-18 05:03
awesome gizmo! only wish was that it would work when matching an upside down chart. seems to get funky. otherwise i just flip the image and match the chart and it works! thanks
 
 
0 # kasiflaco guyi 2017-03-14 16:45
Thanks so much from Venezuela
 
 
0 # Pedro Andrade 2017-06-06 13:01
Hey Marco! This seems pretty nice. Can you please share the documentation for the math behind the transform matrix? Thanks
 
 
0 # Thomas Mansencal 2017-06-06 19:52
Quoting Pedro Andrade:
Can you please share the documentation for the math behind the transform matrix? Thanks


It is a Multivariate Linear Regression: https://en.wikipedia.org/wiki/General_linear_model and uses numpy.linalg.ls tsq: https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.lstsq.html
 
 
0 # Pedro Andrade 2017-06-07 10:03
Thanks a lot Thomas.

One thing that seems to have always some discrepancy when comparing different documentations are the RGB values on the Macbeth chart. For example, here on Nukepdia the values used on mmColorTarget tool are different to the ones of V_ColorRenditio nChart... Also different documents seems to have different information on the normalized values of RGB for the same illuminant:

http://www.babelcolor.com/index_htm_files/RGB%20Coordinates%20of%20the%20Macbeth%20ColorChecker.pdf

https://www.cs.utah.edu/~aek/classes/cs7650/part03.html

http://xritephoto.com/ph_product_overview.aspx?ID=824&Action=Support&SupportID=5159

Can anyone expand on this differences and how / where these values of this tool were obtained?
 
 
0 # Thomas Mansencal 2017-06-07 10:13
Quoting Pedro Andrade:
Thanks a lot Thomas.
Can anyone expand on this differences and how / where this values of this tool were obtained?


Absolutely :) As explained in the description they were generated by myself, the file that yielded the value is there: https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/notebooks/mmColorTarget_dependencies.ipynb

They are based on XRite ColorChecker 2005 values as described here: https://github.com/colour-science/colour/blob/cdbffd063b0c44bb32d752b01647137871434851/colour/characterisation/dataset/colour_checkers/chromaticity_coordinates.py#L114-L114

Now colour rendition charts are never produced equal, so it is normal to find discrepancies between them, not only that but there are also differences in the various RGB colourspaces / whitepoints values depending where you source your data.

This reminds me that I should regenerate the Notebook/JSON file with the latest values content from Colour.
 
 
0 # Alex Grau 2017-12-19 15:27
Hi guys, anybody tried with Nuke 10 on win7 ? Thanks
 
 
0 # Andrew Rea 2018-01-08 18:25
Quoting Alex Grau:
Hi guys, anybody tried with Nuke 10 on win7 ? Thanks

Have it working in Nuke 10.5 in Windows 7 at work, I got the numpy build from the link in Marco's blog above
 
 
0 # APURVA KISHORE 2017-12-30 07:10
Thanks so much
 
 
0 # Michael Kennedy 2018-03-21 23:40
Anyone had any luck with this on 11.1v2? Running on win7, i know, i know...

It drops in just fine and functions well. When I save and open the script again i get a slew of "no such knob" errors and the property window looks like an empty node. Any ideas?

Thanks,
Michael
 
 
0 # IDontWant ToRegister 2018-06-08 13:08
Hello, in Nuke 11.1v3 when clicking on button "Calculate Matrix" I get this error: 'NoneType' object has no attribute 'knob'

Please do you know what could be the problem?
 
 
0 # Tobias Pfeiffer 2019-01-15 07:24
Hi,
thank you for this very useful tool.
Is there any way to keep the lumincance untouched? Often I would like to just get it neutrlized without the patches hitting absoloute value (like .18 for middle grey).

Usualy I am going with the "no clip" choice instead of direct, because the direct mode tend to do funky stuff to overbrights. Is this recommended?
Thanks,
Tobi
 
 
0 # Tobias Pfeiffer 2019-01-15 07:24
Hi,
thank you for this very useful tool.
Is there any way to keep the lumincance untouched? Often I would like to just get it neutrlized without the patches hitting absoloute value (like .18 for middle grey).

Usualy I am going with the "no clip" choice instead of direct, because the direct mode tend to do funky stuff to overbrights. Is this recommended?
Thanks,
Tobi
 
 
0 # Jorge Garcia 2019-06-23 04:47
Hi! this is a really wonderful tool!
I've been struggle trying to make it work on windows.
Theres is a step by step installation for this OS?
I just installed gizmo, phyton, numpy; modify init.py
I can bring the node but can't calculate matrix because it says: This gizmo requires the Python module 'NumPy'.Please install it first and make sure Nuke can import it.
But it is installed.

Any help please?

Thanks before hand.
 
 
+1 # Marco Meyer 2019-07-04 13:54
Instead of installing python and numpy, have you tried just unzipping this https://www.marcomeyer-vfx.de/wp-content/uploads/numpy_py27_win64_vs2010.zip
into your ".nuke" directory?
 
 
+2 # Jorge Garcia 2019-09-27 00:20
Quoting Marco Meyer:
Instead of installing python and numpy, have you tried just unzipping this https://www.marcomeyer-vfx.de/wp-content/uploads/numpy_py27_win64_vs2010.zip
into your ".nuke" directory?

Thanks sir!!!

Finally I stumbled with a very useful post that helped me to make it work in a easy way :D

Quoting dapoer vfx:
Quoting Jorge Garcia:
Hi! this is a really wonderful tool!
I've been struggle trying to make it work on windows.
Theres is a step by step installation for this OS?
I just installed gizmo, phyton, numpy; modify init.py
I can bring the node but can't calculate matrix because it says: This gizmo requires the Python module 'NumPy'.Please install it first and make sure Nuke can import it.
But it is installed.

Any help please?

Thanks before hand.


Same situation here..! Tried on Win 10. I hope someone else here can give solution. Thanks



This is a trick:
1.Install las Houdini Version
2. Go to: C:\Program Files\Side Effects Software\Houdin i 17.5.293\python27\lib\site-packages
3.Copy all content to: C:\Program Files\Nuke10.0v3\pythonextensions\site-packages
4. WhOA LA!!

Thanks to:
https://jurajtomori.wordpress.com/2018/11/28/nuke-tip-installing-numpy-for-nuke-python-on-windows/


Hope it helps! :D
 
 
0 # dapoer vfx 2019-09-25 15:18
Quoting Jorge Garcia:
Hi! this is a really wonderful tool!
I've been struggle trying to make it work on windows.
Theres is a step by step installation for this OS?
I just installed gizmo, phyton, numpy; modify init.py
I can bring the node but can't calculate matrix because it says: This gizmo requires the Python module 'NumPy'.Please install it first and make sure Nuke can import it.
But it is installed.

Any help please?

Thanks before hand.


Same situation here..! Tried on Win 10. I hope someone else here can give solution. Thanks
 
 
0 # rodrigo guerechit 2019-06-25 06:24
Thanks Jason for sharing this amazing tool!!!!! Works perfect.
 
 
0 # dapoer vfx 2019-09-27 10:40
Quoting Jorge Garcia:
Quoting Marco Meyer:
Instead of installing python and numpy, have you tried just unzipping this https://www.marcomeyer-vfx.de/wp-content/uploads/numpy_py27_win64_vs2010.zip
into your ".nuke" directory?

Thanks sir!!!

Finally I stumbled with a very useful post that helped me to make it work in a easy way :D

Quoting dapoer vfx:
Quoting Jorge Garcia:
Hi! this is a really wonderful tool!
I've been struggle trying to make it work on windows.
Theres is a step by step installation for this OS?
I just installed gizmo, phyton, numpy; modify init.py
I can bring the node but can't calculate matrix because it says: This gizmo requires the Python module 'NumPy'.Please install it first and make sure Nuke can import it.
But it is installed.

Any help please?

Thanks before hand.


Same situation here..! Tried on Win 10. I hope someone else here can give solution. Thanks



This is a trick:
1.Install las Houdini Version
2. Go to: C:\Program Files\Side Effects Software\Houdini 17.5.293\python27\lib\site-packages
3.Copy all content to: C:\Program Files\Nuke10.0v3\pythonextensions\site-packages
4. WhOA LA!!

Thanks to:
https://jurajtomori.wordpress.com/2018/11/28/nuke-tip-installing-numpy-for-nuke-python-on-windows/


Hope it helps! :D



WHOOO...HOOOOOO ..Thank a tons ..Obrigadooo... Rodrigo !! ...Works like a champ !!
 
 
0 # Thomas Mansencal 2020-02-04 09:30
Hi,

It was long overdue but I have updated the JSON file to use the "ColorChecker24 - After November 2014" formulation: https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/resources/mmColorTarget_colorspaces.json and the notebook to generate those is here: https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/notebooks/mmColorTarget_dependencies.ipynb

Cheers,

Thomas
 
 
0 # David Wahlberg 2020-03-03 15:44
Hi Thomas,
It's great to see that you are keeping this project alive! It's great, thanks again! :)

Now to a question. We've run into plates shot with the "new" ColorChecker Passport Video edition, that obviously doesn't work with the current version. Any plans on making it compatible with this color checker version as well since it seems to be used more and more?

Cheers,
David
 
 
0 # Thomas Mansencal 2020-03-04 08:09
Hi David,

You are the second person this week to ask me about the ColorChecker Passport Video! So I haven't spent too long looking for them, but I could not find the colour specification for the samples.

That being said, one issue I see with that particular model is that it is extremely biased toward grays and skin tones which will be detrimental to all other colours if you were to do a 3x3 matrix-based colour correction.

Technically, when captured under uncontrolled lighting conditions, colour checkers should only be used to perform white balance, the reference colours are assuming a particular illuminant, e.g. D65 and if you were correcting a shot lit with tungsten, you would most likely do worse than good.

Cheers,

Thomas
 
 
0 # David Wahlberg 2020-03-09 13:35
Hi again Thomas,
We have received the full colour specifications for the ColorChecker Passport Video directly from X-Rite. Would you be interested in having a look at them, and see what you could do with them at all? Or is that not interesting to you because of what you stated above?
Cheers, David
 
 
0 # Thomas Mansencal 2020-03-12 05:54
Hi David,

I don't have any objections to generate the data however what are the usage conditions for that X-Rite data?

We should probably continue that convo via Email anyway :)



Cheers,

Thomas
 
 
+1 # pancho lopez 2020-03-04 00:14
Help

Hi, I've done everything to make the gizmo work with nuke 12.0 v4

I have downloaded numpy from this link
https://www.marcomeyer-vfx.de/posts/2014-04-11-mmcolortarget-nuke-gizmo/
and I copied it C: \ Program Files \ Nuke12.0v4 \ pythonextension s \ site-packages

but at the time of calculating matrix

I get a message that says
'NoneType' object has no attribute 'knob'
 
 
+2 # pancho lopez 2020-03-04 00:14
Help

Hi, I've done everything to make the gizmo work with nuke 12.0 v4

I have downloaded numpy from this link
https://www.marcomeyer-vfx.de/posts/2014-04-11-mmcolortarget-nuke-gizmo/
and I copied it C: \ Program Files \ Nuke12.0v4 \ pythonextension s \ site-packages

but at the time of calculating matrix

I get a message that says
'NoneType' object has no attribute 'knob'
 
 
0 # jamal amh 2020-11-05 11:53
me like you the same problem i stopped trying :sad:
 
 
0 # Thomas Mansencal 2020-11-14 20:26
To anyone trying to install Numpy with Nuke, you need to make sure that the Numpy version you are pulling is compatible with the shipped Nuke interpreter, e.g. compiled with the same toolchain.
 
 
+1 # Nick Shaw 2021-02-02 10:25
Quoting Thomas Mansencal:
To anyone trying to install Numpy with Nuke, you need to make sure that the Numpy version you are pulling is compatible with the shipped Nuke interpreter, e.g. compiled with the same toolchain.

Thanks to some help from @Thomas, I have found that the version of Numpy that ships with Houdini is compatible with Nuke 12.2v4 (macOS). Previously the Apple shipped Numpy worked fine with Nuke 11.
 
 
0 # Thomas Mansencal 2021-02-03 01:32
Numpy-macOS-Hou dini-18.5-GCC4. 2.1-LLVM10.0.1- Clang-1001.0.46 .4.zip: https://drive.google.com/open?id=1rvfoVT-n5ZAD21kzenmUz19qZfpvGEr8
 
 
0 # Adrien Delecroix 2020-11-03 14:36
Hey,

If anyone could just say the complete workflow to install this good script correctly, it would be awesome!
Thanks a lot.
 
 
0 # H Hakim 2020-11-14 20:21
Quoting Adrien Delecroix:
Hey,

If anyone could just say the complete workflow to install this good script correctly, it would be awesome!
Thanks a lot.


I think you need to have "numpy" library in your .nuke folder.
 
 
0 # H Hakim 2020-11-14 20:23
I think this gizmo is not compatible with ACES colorspace...No?
I can't have correct values in ACES workflow.
 
 
0 # Thomas Mansencal 2020-11-14 20:27
It should work without any problems with ACES.
 
 
0 # Nico Wieseneder 2021-01-16 18:21
Does anyone know if this gizmo works with NukeIndie too? Or is there too much Python code as NukeIndie is limited to 10 command lines only? Thanks!
 
 
0 # Marco Meyer 2021-01-18 20:35
nope, sorry... this has way more than 10 lines of code :-)
 
 
0 # Marco Meyer 2021-03-17 17:48
Before anyone starts asking: I'm just finishing up a Python 3 compatible version that will also run on Nuke 13.
It contains some additional features so it requires some more testing, so please bear with me ;)
 
 
0 # Charlie Armstrong 2021-03-19 04:57
all good
 
 
0 # Jens Lindgren 2021-06-03 12:45
I'm trying out the new v3 but I can't see that you're doing any chromatic adaptation when you're converting between color spaces, so the white point is shifting quite a lot. Is this by design or simply overlooked?
 
 
0 # Marco Meyer 2021-06-04 12:53
Thanks for pointing that out, I must have neglected that. I will look into it for the next release.
 
 
0 # Marco Meyer 2021-06-06 13:38
This is fixed in v3.1
 
 
0 # Jens Lindgren 2021-06-09 08:39
Yeah seems to be working as expected now. Thanks :)
 
 
0 # David Sanchez 2021-08-13 20:57
Could someone help me with getting this to work on windows 10 with nuke 13.v3?

I'm getting a numpy error.

Thanks
 
 
0 # Marco Meyer 2021-08-14 09:09
I'm assuming your numpy might be a python 2.7 version, while nuke 13 requires 3.7. Otherwise please post the full error traceback, because "a numpy error" can be many things.
I have recently updated the installation instructions on my website. Make sure you try using the python3 numpy that comes with one of the houdini-py3 installers.
https://www.marcomeyer-vfx.de/posts/mmcolortarget-nuke-gizmo/
 
 
0 # David Sanchez 2021-08-14 17:01
Hi Marco,

here is the error I get. I install the latest houdini and copied the numpy and then added to nuke.

I will have to check to see if the Houdini version I have has python 3. Do you know a Houdini version that has that?

ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.

Original error was: DLL load failed: The specified module could not be found.

Thanks,
David
 
 
0 # Marco Meyer 2021-08-15 09:39
All of the latest versions have python3. You have to check on the houdini downloads site, they offer both python2 and python3 versions to download. Just pick the any of them that have houdini-py3 in their name.
 
 
0 # David Sanchez 2021-08-20 15:33
thanks that worked
 
 
0 # Atalow Tronatic 2021-11-08 15:14
Hi Marco,

I tried to install numpy on nuke... but in each time i have a new error.
My protocol :
- I installed anaconda to install numpy with the good version of python (3.7.11 MSC v1916) My nuke is v13 (Py v 3.7.7 MSC v1916)
- Next, i've copy the "numpy" folder in anacaonda environnement to nuke in pythonextension s/packages
- When i try in nuke "import numpy" i've this error : DLL Load failed...

Can you help me ?
Thanks
 
 
+1 # George Marmoutas 2022-06-05 10:06
Good morning to y'all

First I've to thank you for this great tool ! It's been a pleasure seeing that you continue updating it !

____numpy from Houdini_____
The houdini method works like a charm and it is the easiest method for me as my knowledge on python is limited .

Just to have every comment concentrated for everyone

You have to go to the houdini download page and in the end there is a link for the Production Builds . Press that and you will see all the 'recent' versions
Now on the top there is a series of buttons . press what is going to work for your Nuke release . python3 or python2 .
Download ->Install -> copy the numpy folder from your Hoodini installation , to a backup folder for safe keeping.

There are two ways of installation .
_______________________________
First one if you are using only versions greater than 13 (py3) or lower than 12 (py2)

For this you can copy numpy in to your .../"user name"/.nuke .
Easy stuff , fire and forget kind of thing .
_______________________________
Second one , If you need to have mixed py2 py3 nuke versions on your system you have to add it on each nuke installation folder
nuke(xxxversion)/pythonextensions\site-packages\

as an example for windows
C:\Program Files\Nuke1x.xvx\pythonextensions\site-packages\numpy

And again so many thanks for your time spend on this tool and everybody that provided all the extra info !
Best
G.
 
 
+5 # Rodrigo Elias 2022-12-14 03:10
Hi All !

This is a incredible tool, thanks Marco Meyer for sharing with us!

So, we have upgraded to Nuke 14.0 and numpy stopped working, and after some googling, I have found a very pratical way to get an updated version of numpy. I have followed this tutorial and everything is working fine now in Nuke 14:

https://www.youtube.com/watch?v=hP06VU0kpbo

After installing the numpy extesion it will be at this folder:
C:\Users\\AppData\Roaming\Python\Python39\site-packages

You will just need to copy the numpy folder to nuke pythonextension s folder:
C:\Program Files\Nuke1x.xvx\pythonextension s\site-packages\numpy

Hope it is usefull,
Rodrigo E.
 
 
0 # Cid Bacolod 2023-05-21 17:18
This gizmo requires the Python module 'NumPy'.
Please install it first and make sure Nuke can import it.

Hello! Why it always shows even I followed the step how to copy and paste it.

Thankyou
 
 
0 # Cid Bacolod 2023-05-21 17:18
This gizmo requires the Python module 'NumPy'.
Please install it first and make sure Nuke can import it.

Hello! Why it always shows even I followed the step how to copy and paste it.

Thankyou
 
 
0 # Daniel Gambin 2023-09-01 16:58
Thank you Rodrigo!! So usefull!
 
 
0 # Victor Anderes 2023-04-08 22:47
I had some problems with Numpy but I finally resolved them but now I get this error when I run "import numpy" in my nuke script window:
# Result: Traceback (most recent call last):
File "", line 1, in
File "C:/Users/MyNam e/.nuke\numpy\_ _init__.py", line 128, in
from version import git_revision as __git_revision__
ModuleNotFoundError: No module named 'version'



Unfortunately I have no idea about Python and don't know how to solve the problem. I would be extremely grateful if someone could help me. Im on a windows machine and Im running Nuke 13.0v5
I think the Numpy version is 1.7.1 (697316a867a32e 9f72778a29226c9 febbf867ee8) but I also tried the latest version to no avail
 
 
0 # Marco Meyer 2023-04-09 17:09
I'm just gonna make a quick guess that your numpy version 1.7.1 is still for python 2.7 which is too old and therefore not compatible with nuke 13 (which uses python 3.7). Most people here have been successful getting a compatible numpy version from a houdini installation on Windows. Try to get a Houdini 18.5 python3 installer... that should be most likely compatible with nuke 13.0:
https://docs.google.com/spreadsheets/d/1-8VdfspUBpkYJzfKKovI-H2bZeb5Wn3cuNPsq_Ho3S8
 
 
0 # Jeremy Hardin 2023-06-02 10:49
For nuke 14.0, we got this working by installing numpy and pandas to the system python3.9 and copying it over.
py -m pip install numpy
py -m pip install pandas

then copying the following folders from the python3.9 site-packages folder into nuke's pythonextension s/site-library folder:
numpy
pandas
tzdata
pytz

Seems to work well in nuke14 after that.
 
 
0 # luke moore 2023-09-18 22:05
Hi I hope you can help,

I am on Nuke 14v4 and have used the numpy file from Houdini 19.5.682 and placed it below please see attached pictures I also run install numpy in the script editor and get this back and this is the error I get in nuke please see below:

https://ibb.co/X7QQ6gZ

https://ibb.co/4Snpv09

https://ibb.co/Jxb8hX2

Hope someone can help,

Many thanks.
 
 
0 # kuan Lin 2023-11-30 02:53
hi anyone got this working on nuke 15? I copy over numpy from 14 but it is not working

tthanks!
 
 
0 # mama z 2024-02-10 15:00
Quoting kuan Lin:
hi anyone got this working on nuke 15? I copy over numpy from 14 but it is not working

tthanks!



No luck in successfully using it on the Nuke 15 version on Mac.
 
 
+2 # Ame Nic 2024-04-04 15:06
I finally found a way to make it work in Nuke 15 :
First, you need to install Python 3.10.10 on your machine. You can download the 64-bit installer on the official site :
Windows: https://www.python.org/ftp/python/3.10.10/python-3.10.10-amd64.exe
Mac: https://www.python.org/ftp/python/3.10.10/python-3.10.10-macos11.pkg
When you install it make sure you check the box that adds python as a PATH (windows).

Run your terminal (cmd)
If you want to make sure your installation of python went well you can write:
Windows : python --version
Mac : python3 --version
You should see : Python 3.10.10

Then write:
Windows : py -m pip install numpy
Mac : python3 -m pip install numpy

Once it's installed you should copy the folder numpy from
Windows : c:\users\YOURNAME\appdata\local\programs\python\python310\lib\site-packages
Mac : /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
to
Windows : c:\programfiles\nuke15.0vX\plugins\
Mac : /Applications/Nuke15.0vX/Nuke15.0vX.app/Contents/MacOS/plugins/

It worked for me after that. You should be able to uninstall python on your machine if you want since Nuke has python already installed.
 
 
+1 # Andrew Savinsky 2024-04-07 18:26
Thanks for instructions.
I did the same and still had an error message.

I found a way to fix it. I copied not only numpy folder from c:\users\YOURNA ME\appdata\loca l\programs\pyth on\python310\li b\site-packages but also two folders: numpy-1.26.4.di st-info and numpy.libs

As a result in c:\programfiles \nuke15.0vX\plu gins\ I have three copied folders:
numpy
numpy-1.26.4.di st-info
numpy.libs

With this setup mmColorTarget works for me
 
 
0 # sfesf esfse 2024-02-17 11:19
After doing all of this. it still tells me that i need to install numpy.
im on nuke 15. not working here
 
 
+2 # Polina Zaitseva 2024-04-19 23:28
same, i tried everything, still having an error
 
 
+2 # Scott Bell 2024-04-22 15:38
Verified working with Nuke 15.0v4...

The numpy from Houdini 20 is the correct version to use. Install the apprentice free version and copy the numpy from:

C:\Program Files\Side Effects Software\Houdin i 20.0.625\python310\lib\site-packages\

to:

C:\Program Files\Nuke15.0v 4\plugins
 
 
0 # Hiroshi Saito 2024-05-20 16:23
Do not try to copy numpy from outside of nuke program.
Try pip in NUKE program folder instead;

Mac(Terminal.app)
/Applications/Nuke15.0v4/Nuke15.0v4.app/Contents/MacOS/python -m pip install numpy

Windows (Command Prompt)
> C:\Program Files\Nuke15.0v 4\python.exe" -m pip install numpy

Install correct version of numpy for nuke.
Use pip show option to confirm where the numpy had been installed:

/Applications/Nuke15.0v4/Nuke15.0v4.app/Contents/MacOS/python -m pip show numpy

Location: /Applications/N uke15.0v4/Nuke1 5.0v4.app/Conte nts/Frameworks/ Python.framewor k/Versions/3.10 /lib/python3.10 /site-packages

---
update:
sorry, Windows command was wrong! python.exe must be used insetead of py.exe. py.exe calls python command in windows system.
 
 
0 # vivo iso 2024-07-16 22:13
please help with nuke Nuke15.1v1 with mm color v3.1 and NumPy version 2.00 it not working its says: This gizmo requires the Python module 'NumPy'.
Please install it first and make sure Nuke can import it.
 
 
0 # vivo iso 2024-07-16 22:16
c:\program files\python312 \lib\site-packa ges (2.0.0)
 
 
0 # Marco Meyer 2024-08-02 05:57
Nuke 15.1 is still on python 3.10, the numpy you are trying to use is for python 3.12 as you can see in the filepath. Try using a numpy version from a houdini install of the same VFX platform year as described in my blogpost or in some of the the other responses here. Besides that there really is no benefit updating to the latest numpy 2.0+ release (at least not for use with mmColorTarget) and I haven't been able to test that yet.
 
 
+1 # Alejandro Pyankovsky 2024-09-09 18:41
Hi! Great job! Please tell me, are you planning to include Color Checker Video (not Colorchecker video passport) in the list
 
 
0 # Marco Meyer 2024-09-20 17:50
Thanks. I am trying to limit the choice of colorcharts to the ones with the same 4x6 pattern, which are the most commonly used ones. However if the majority of people start adopting a new one with a different pattern, then it might be worth the effort to implement that one as well. But that is not the case right now unfortunately.
 
 
0 # Alejandro Pyankovsky 2024-09-26 12:39
Ok, thank's!
 
 
0 # Alejandro Pyankovsky 2024-09-26 12:39
Ok, thank's!
 
 
0 # saqlain usmani 2024-09-20 16:40
plzz help me iam still stuck at the import numpy error i tried all the above steps including the Houdini one but still cant figure it out
 
 
0 # Kenedy Torcatt 2024-10-14 17:33
This is not working for Nuke 15v3 is it possible to have an update for this?
 
 
0 # Marco Meyer 2024-10-14 21:04
just checked and everything works fine for me with this configuration:
Nuke 15.1v3, mmColorTarget 3.1, Linux (EL9), numpy 1.26 for python 3.10

If there seems to be an issue you should post your full configuration as well. That way it's easier to track down what might be going wrong on your side. There are a lot of moving parts that have to work together to make this tool work, unfortunately. Error Messages help, too.
 
 
0 # Kenedy Torcatt 2024-10-15 00:11
Thanks for replying I had to dowonload again numpy for pythin 3.1 and it worked, thanks!
 
 
0 # Seb James 2024-10-30 12:42
Hi, I have downloaded Numpy 1.26 and copied the 'numpy' folder from here: numpy-1.26.0\numpy

to: C:\Program Files\Nuke15.1v3\pythonextensions\site-packages

Is this correct?

When I type 'import numpy' in the script editor in Nuke it gives me an error message.
 

You have no rights to post comments

We have 4563 guests and 138 members online