cattery_nuke13_support v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Aleksandr Pushkarev
Creates the same menu with Cattery gizmos in Nuke13, as Nuke14 creates automatically
Requirements:
14.0, 13.2, 13.1, 13.0 or later
Windows
11 Feb 2023
985

For Nuke14 you can download machine learning tools from https://community.foundry.com/cattery, put them in your /.nuke/Cattery folder, and Nuke14 will create nice menu for you.

menu_cattery_edited.jpeg

But these tools also supported by Nuke13 because they all use Inference node inside. So I decided to make easy to install solution for you, so you can use those brand new nodes in both Nuke13 and Nuke14 versions.

 

Installation guide:

-put all downloaded files in your Cattery folder, right next to the machine learning tools. It should looks like this:

structure.jpg

-add to /.nuke/init.py this line:

nuke.pluginAddPath('./Cattery')

 

For the first time you run any node from Cattery you may need to wait about 30 minutes while Nuke compile CUDA kernels. Quote from Nuke User Guide:

To use CopyCat, Deblur, Inference, or Upscale on Ampere GPUs in Nuke 13.2, the CUDA kernels need to compile the first time you use them. This process is only necessary once and should take about half an hour. The compiled kernels are stored in the CUDA cache which requires between 2147483648 bytes (2 GB) and 4294967296 bytes (4 GB) of storage.

 

The most of gizmos will appear only in Nuke 13.1 and later. If you wanna to make it work on Nuke 13.0 you should open cat.json file in your tool folder(MiDaS, ModNet, etc) and change minimum_nuke_version_required variable from 13.1(or whatever it is) to 13.0. 

Please login in order to download these files.

Comments   

 
0 # Thomas Vu 2022-12-19 04:56
Is any chance to make it work with nuke 13.0v06
I installed but your script did not read to menu all the cat folder (MiDas, FaceMakeup, etc)
 
 
-1 # Aleksandr Pushkarev 2022-12-19 11:54
Yes you can make it work on Nuke 13.0. You should open cat,json file in your MiDas folder and change minimum_nuke_ve rsion_required variable from 13.1 to 13.0
 
 
0 # Thomas Vu 2022-12-20 04:15
MLPlanarIop -> Exception caught loading cat file: The catfile C:/Users/nikas/ .nuke/Cattery/M iDaS/MIDAS_orig .cat has version 2.0. This version of NUKE supports catfiles up to version 1.0

now can load the gizmo but there is issue
 
 
0 # Aleksandr Pushkarev 2022-12-21 17:58
That's why minimum_nuke_ve rsion_required variable is set to 13.1. You can't use this gizmos in version earlier than 13.1.
 
 
0 # Therodefox Osokin 2023-02-10 14:28
after launching any of the neural networks, I have a nuke freeze and not working. how i can fix this? Nuke 13.2v5
 
 
0 # Aleksandr Pushkarev 2023-02-11 13:23
You have no way to fix this. It happens because of Nuke needs to compile CUDA kernels for the first time you run neural nodes. You just have to wait for it.
Thats what Nuke User Guide says about that:
Quote:
To use CopyCat, Deblur, Inference, or Upscale on Ampere GPUs in Nuke 13.2, the CUDA kernels need to
compile the first time you use them. This process is only necessary once and should take about half an hour.
The compiled kernels are stored in the CUDA cache which requires between 2147483648 bytes (2 GB) and
4294967296 bytes (4 GB) of storage.
In my case it was much faster, less than 30 minutes.
 
 
+1 # Igor Kurenkov 2023-03-02 07:05
Really useful! Thanks bro!
 
 
0 # Lumare Grubbs 2023-06-13 11:43
I have 13.1 and I cant figure this out for anything.. I made a Cattery folder in my .nuke folder, copped over the contents from the download and nothing changes. What am I doing wrong?
 
 
0 # Aleksandr Pushkarev 2023-06-13 12:02
You missed last step:
-add to C:/Users/userna me/.nuke/init.p y this line:
nuke.pluginAddPath('./Cattery')
 
 
0 # Lumare Grubbs 2023-06-13 23:32
Thanks for the response Aleksandr, I'm not familiar with python at all. Do I add it to the bottom of all the code or replace something? Where exactly do I add it?


Is this correct?

file = __file__
file = file.replace('\\','/')

def addPluginPathRe cursive(path):
nuke.pluginAddP ath(path)
lst = os.listdir(path )
for i in lst:
itemPath = '/'.join([path, i])
if os.path.isdir(i temPath):
addPluginPathRecursive(itemPath)

fullDir = os.path.dirname(file)
dirname = fullDir.split('/')[-1]
if dirname.lower() == 'cattery':
dirLst = os.listdir(full Dir)
for name in dirLst:
itemPath = '/'.join([fullD ir,name])
if os.path.isdir(i temPath):
addPluginPathRecursive(itemPath)

nuke.pluginAddPath('./Cattery')
 
 
0 # Aleksandr Pushkarev 2023-06-14 08:49
you need only to add nuke.pluginAddP ath('./Cattery' ) to the bottom of init.py file
 
 
0 # Emi Aran 2023-08-24 18:56
Not working for me, I've copied the line on init.py, and the Cattery folder on .nuke folder root.
I've also tried adding a command on menu.py
It keeps bringing the "unktnown command" message.
 
 
0 # Emi Aran 2023-08-24 20:49
nuke 31.2v2
 
 
+1 # Lukas Remis 2023-07-04 09:58
Thank you for the tool
 
 
0 # leonardo paolini 2024-04-12 11:32
I dont see the point of having this appearing in nuke 13.0 if than we cant use most of the gizmos there.

I mean the tutorial works and I have all catteries showing up but none of them works cause gizmos compatibility
 

You have no rights to post comments

We have 3284 guests and 43 members online