ISAAC SPIEGEL
  • Demo Reel
  • work
  • Blog
  • Contact

Nuggets of knowledge

Python: Set Project Settings from Read Node

3/24/2020

0 Comments

 
Picture
Download the script from Nukepedia here:
www.nukepedia.com/python/misc/set-project-settings-from-read-node
Description
I've written a handy Python script that takes a look at the selected read node and sets the project full-size format, aspect ratio, and frame range to that of the read node. If the full-size format does not exist in the current user's list of formats, it prompts the user to name the new format and adds the new format to the dropdown menu before setting the project settings. Useful when first creating a script and you want to quickly set your project settings.

I've used this script a handful of times when starting up a fresh Nuke project. The script makes setting project information snappy when you know that the read node you're bringing in is exactly right resolution, frame range, and aspect ratio as the output. The idea for this script came from some programming phrase that's something along the lines of "If you have to do a dull simple task more than twice, automate it." And that's exactly what this script aims to address. Setting the project settings has to be done every single time you start on a new shot and it requires multiple steps. Having the ability to adjust all the project information saves a few clicks and lets you get working faster.

Happy programming!
Installation
  1. Download the script and place it in a folder contained in the .nuke directory that is loaded when nuke launches. (Typically a folder named "Python", nested inside the .nuke folder, make sure this is loaded inside the init.py file)
  2. Copy the 2 lines of code under the "ADD TO MENU.PY" to your menu.py (don't forget to remove the comment #s)
  3. When Nuke launches, there should be a new menu at the top bar called "Utilities" with the "setProjectSettings" code nested inside
  4. To run the script, selected one read node, and select "setProjectSettings" from the dropdown menu, or use the hotkey "meta+s"
0 Comments



Leave a Reply.

    Archives

    January 2021
    December 2020
    September 2020
    March 2020
    September 2019
    August 2019
    June 2019
    December 2018

About

Compositing.
Motion Design.
Climbing.
Cooking.
Shiba.

Contact

email:         isaacspiegel.freelance@gmail.com
web:           isaacspiegel.com
instagram: @fuzzymango_collective
  • Demo Reel
  • work
  • Blog
  • Contact