Expanded

Introduction to Python Scripting in NUKE

Python is a widely used scripting language that is integrated into NUKE to let us artists control the user interface, quickly modify many nodes, and integrate with external applications. Software required: NUKE 6.3v6.
Course info
Level
Intermediate
Updated
Oct 1, 2012
Duration
2h 52m
Table of contents
Description
Course info
Level
Intermediate
Updated
Oct 1, 2012
Duration
2h 52m
Description

Python is a widely used scripting language that is integrated into NUKE to let us artists control the user interface, quickly modify many nodes, and integrate with external applications. By learning some Python commands and workflows we can extend NUKE and write scripts that let us focus on creating art. We will start this NUKE tutorial by echoing the Python commands that NUKE uses internally and begin writing our own code. From there we will learn how to correctly create nodes, set properties at node creation and have our scripts automatically run whenever NUKE starts up. From there, we can begin working on some projects, like a script that selects all nodes of a specific class based on user input and a script to automatically break a multi-channel EXR into individual auto-cropped shuffle nodes so we can begin compositing faster. Software required: NUKE 6.3v6.

About the author
About the author

Chris is a VFX author at Pluralsight. Along with creating and recording training, he also manages the support team and works closely with the production development team. He began his career working freelance and quickly realized that he wanted to find a company where he could use his talents to help people succeed in the CG industry.

More from the author
Artist Guide to Motion Graphics in 3ds Max
Intermediate
3h 37m
Sep 30, 2013
Artist's Guide to Smoke 2013
Beginner
1h 53m
Feb 4, 2013
Tips and Tricks in Smoke
Intermediate
32m
Feb 2, 2013
More courses by Chris Glick
Section Introduction Transcripts
Section Introduction Transcripts

Introduction and Project Overview
Hi. I'm Chris with Digital-Tutors. In this series of tutorials, we will learn how to create Python scripts to automate tedious tasks and make our lives easier. Python is a widely-used scripting language that is integrated into Nuke to let us artists control the user interface, quickly modify many nodes, and integrate with external applications. However, Python is isn't great for everything. For example, it's a bit too slow to efficiently do per pixel or per 3D point operations, but by learning some Python commands and workflows, we can extend Nuke and write scripts that let us focus on creating art. We will start by echoing the Python commands that Nuke uses internally and begin writing our own code. From there, we will learn how to correctly create nodes, set properties, and have our scripts automatically run whenever Nuke starts up. From there, we can begin working on some projects like a script that selects all nodes of a specific class based on user input and a script to automatically break a multi-channel EXR into individual auto-cropped shuffle nodes so we can begin comping faster. Now this course goes over Python scripting and not how to use or navigate in Nuke. If you'd like to get up to speed on Nuke, I'd recommend going through a few of our courses in our Nuke learning path. So let's go ahead and get started in the next lesson.