Nuke tutorial | Writing a python script inside Nuke using Artificial intelligence | chatGPT in VFX

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
foreign welcome back to yet another tutorial in Matlock cfx in today's tutorial before that it's been a while since I made my last video sorry about that there are lots of personal reasons behind that and I'm trying to spend some time with my family so hope that's okay with you guys so let's see what's today's tutorial is all about so we are inside nuke here as always we do and let's go into a folder so here I have a bunch of images very random one which I downloaded from Google no from pixels.com so not specifically any category or anything so I'm going to select all these images and go back to New can drag it over here so here we have all those images I'm going to select all these images and click on L that means I can organize this horizontally inside my node graph you can see the images these all are good photographs I would say and let's suppose in this instance all these images are different pre-coms from our script which we rendered separately so in my case when I used to do complex paint prep tasks where I have to render a pre-comp and use that pre-comp later in my work to improve the efficiency of my script so I used to do that a lot so in this case let's suppose these all are pre-coms from my script and sometimes I have to go back and make some changes and re-render that and you know most of the time I have to double click on individual render and go into the properties and click on reload to to reload those changes but I feel this is a very tedious task sometimes and we can definitely automate this using python as you know I'm not a coder I'm not a geek so so I was trying to write a python code for this specific function like instead of reloading every single renders or separately instead of that just write a python script and execute the function that means every renders will be automatically reloaded it's on school right so I was trying to write a code for that so what I did is that I use the magical chat GPD for that thank you we are inside openai.com and I would say open AI is really really impressive I'm not sure but I think open AI is behind daily 2 as well and right now they came up with chat GPD which is a revolutionary thing so what is stat GPD I I think most of you already might know what is chat jpt you might have seen several videos explaining about this technology I'm just going to give you a rough idea about this maybe I can show you an article which I read and I'm going to roughly explain how we can make use of charge GPT in our day-to-day work so this is a link where we can get access to the chat CPT I'll definitely add the link in the description of the video so if you are interested kindly go there and check it out so if you come over here you can click on try chat chipity so here we go so here I have an interface where I can just type in anything literally anything and AI or chat GPD is going to answer me for that question or for that request or for whatever we are asking here are few examples here are a few capabilities for chat gbd and these all are the limitations as well so if you are interested just go through all these things maybe I can write something over here and get an answer for that explain Quantum Computing in simple terms even I don't know what is quantum Computing I'm going to click on this and you can see explain Quantum Computing in simple terms just click on this icon I don't know what it is called but let's click on this it might take a little time depending on your internet speed I guess so let's wait for a few seconds yes here we go so it took a little while to generate this response so it states that Quantum Computing is a type of computing that uses quantum mechanical phenomena such as superposition and entanglement even though it's in simple term but I'm unable to understand so I'm going to skip this part um okay so this is a cool article which I found on internet 10 cool things you can do with chat GPD I'm going to go through this very roughly we can use this as a Linux terminal you can type codes you can debug you can write codes lots of stuff regarding code which we are going to obviously use in our tutorial and also we can make use of chat GPD for explaining things get ideas for air decorations party themes find answers to homework and assignment questions with chat this is going to evolutionize education for sure students can make use of this for getting their homework or assignments getting done very very easily and quick without any stress wow also we can make use of chat GPD to write musics also stories also screenplay dialogues what not we can use chat gbd for translations as well extract data from text I don't know what else we can't do with this I'll try to Google more about chat deputy and try to see lots of YouTube videos regarding this topic you will understand more about the tool and how to make use of this tool in your day-to-day work okay so we are inside LinkedIn and this is an amazing group Foundry new compositors which is started by Adrian Josh and Tony Lance amazing people in VFX industry so using LinkedIn a lot you can type in your question in this group and yeah get solutions for whatever query you have so while I was scrolling through this group I saw an amazing article one or two about chat gbd which made me think about the applications of this revolutionary technology in our work yes the idea of this tutorial came from there so let's go and see what's that article let me scroll through this there we go here we have the first article and here are a few screenshots of his results and also I saw one more video which will be here somewhere let's see there we go [Music] so from here I just understood that we can make use of this tool for our work and hence I asked every one of you in my WhatsApp group about this technique if you guys are aware of this or not if you guys are not then I thought like let's make a cute tutorial even though I'm busy and I got lots of responses from all of you in my WhatsApp group that you guys want to know how we can make use of this technology in our work so here we go here is a tutorial to explain that by now you would have forgotten that we were inside nuke a while ago and we already imported a bunch of images inside the node graph so our task was to write a python code to reload all these images in just a single click how we can do that inside nuke we have script editor I already made I think four or five or couple more tutorials regarding scripting inside nuke very basic one so if you are interested kindly go there inside my channel and find those absolutely informative videos so here we have script editor we can type in anything not anything just programming Python and we can execute that inside nuke to get the desired result so right now I always go into the properties of every individual read node and used to click on this button reload manually which I'm going to automate Now using chat GPT let's see how we can do that cool so we are inside chat GPT and let's type in our question here what's our question I know the basics of python so I'm just going to ask chat GPD to write this code and let's see if chat GPT is able to provide a solution for my query let's see so I already wrote the question here so let's click on this and let's wait for the answer cool so here we have the answer it's amazing right sure here's the python script that you can use to reload all the read nodes in Nuke you can see this here AI explained everything in detail import nuke create our all the notes in the script for that we can use this function you can see everything is typed over here for us to use what we have to do is just copy this code and paste that inside new can execute that's it hopefully it will work let's see and also there are some definition a the script will Loop through all the notes in the current new script and check if the node is a read node if it is we'll execute the reload knob knob on the Node which will reload the nodes file you can run the script by saving it in a into a python file and then running it from it's okay all these things are details of that code so I'm going to copy this code copy code going back to Nuke let's paste that here here we go I have pasted that exact script which I provided us I'm going to select all the code and click on execute where is execute here we go here we have the result so code worked but let's see if I'm able to reload all the read nodes how to check that maybe I'm going to create a folder here New Path I'm going to select all these images move inside this New Path if I am reloading my path it should break because in this path now there is no pre-com or this image in this case go back to script editor try to run this code again means you can see the code worked right amazing this just opened my eyes because maybe it will take like a couple of days or more for me to conclude into this because I'm not good in Python but here AI helped me to get a code maybe if anything breaks in between I can spend time just try to rectify that specific error I don't have to go and explore the complete code that's pretty amazing right well technology is going I'm not sure okay so I'm going to try one more thing inside nuke I just want to convert tracker 3 which is the old tracker node inside nuke and I just want to convert that into tracker 4. basically I'm going to type in like write a Python tutorial for converting tracker 3 node inside new into tracker 4 node let's see if chat GPT is able to provide a result which is executable inside nuke so here I'm going to write foreign let's wait for the result there we go so here we have the result before going into the result there is a thumbs up or thumbs down button here if you are satisfied with the result or if you think like AI provide the exact result which you are looking for you can just click on this thumbs up button so that I will get to know that's the exact thing which we were looking for or that's the accurate result for the solution and that eventually improves its database so this really helps cool so let's see what's the result here straight away I'm just going to select all the code or just copy code here this is basically all the description for this code so get back to New delete all this stuff let's type in tracker 3 here we have the old tracker maybe I will turn on all the Four Points here maybe I can turn on this as well let's try animating the Four Points as well and let's do a small animation here cool so this is the animation and I'm going to convert this tracker 3 node into a Tracker 4 so let's select this and paste the new script into the script editor so select the entire code let's execute oops so there is an error here in line number 11. so this takes little time for me to you know rectify the error so basically we got the entire code and there are some lines which needs some modifications if you know the basics of python and if you spend some time you are going to rectify this and yeah your code is ready so that's easy it's going to be in future for writing a python code for your compositing or any kind of task inside nuke I also tried a couple of scripts for silhouette and blender I was not happy with the result regarding nuke AI provides much more accurate results and yeah I'm really happy to see this kind of technological revolutions happening in the VFX industry yes I know air is becoming more accurate and eventually this is going to take away lots of jobs I am always optimistic about this kind of air tools also I'm staying updated with this kind of Technology because yeah eventually this is going to ease my work or help my work done pretty easily in future let me know your thoughts about this video in the comments also let me know how you are going to make use of this tool in your day-to-day work I hope you like this tutorial if yes please give a thumbs up and share this with your curious friends so see you with another tutorial it's my new signing off thank you for watching [Music] foreign [Music]
Info
Channel: madlookz VFX
Views: 5,011
Rating: undefined out of 5
Keywords: Visualeffects, Nuke tutorials, Boris FX, Silhouette tutorials, Roto tutorials, Paint-Prep in nuke, Compositing tutorials, Nuke compositing, VFX interviews, vfx and animation, vfx jobs, vfx jobs in india, vfx jobs in canada, Vfx podcast, animation podcast, vfx interviews, Animation interviews, vfx industry, vfx student, vfx india, vfxpodcasts, vfxtalkshow, vfx, chatgpt, chatgpt in vfx, chatgpt 2, chatgpt 3
Id: RPu13NYWj6E
Channel Id: undefined
Length: 12min 48sec (768 seconds)
Published: Tue Dec 20 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.