Git Product home page Git Product logo

nuke_dag_capture's Introduction

Nuke DAG Capture

This is a python script that allows to capture a PNG image of the Nuke node graph. The first version was written as an answer to a Stack Overflow Question, but the code has since evolved a bit to include more options and a UI panel.

Compatibility

The current version is compatible with Nuke 13 and above (python 3). For code compatible with older versions of Nuke, look at release 1.0.0 on GitHub.

Usage

This script can be utilized in two methods.

The first is a temporary approach where you can directly copy and paste the contents of dag_capture.py into the script editor and execute it entirely.

The second method involves a more permanent setup. To do this, add the repository folder to the %userprofile%/.nuke/init.py file. If the init.py file does not exist in your %userprofile%/.nuke/ directory, simply copy the one provided in dot_nuke folder. Then, adjust the path in the copied init.py file to correspond with the location where you cloned this repository.

Pick a path for the desired location of the screenshot (.png format) and edit the options in the UI if necessary (defaults should work okay).

ui screenshot

Then click OK and hang on while the script does its work.

Known issues

  • I have noticed that sometimes the very first tile of the screenshot is showing black with random colored pixels. I am not sure why that is the case, and usually retrying the capture fixes the issue.
  • Some node input labels move around when scrolling in the DAG, and can sometimes end up being in the screenshot multiple times, or being slightly cropped. The crop issue can be fixed by reducing the DAG preview (in lower right corner of DAG) to be invisible, and setting no right crop in the capture settings. Once the dag preview is entirely collapsed, I am not sure how to bring it back apart from restarting nuke.

nuke_dag_capture's People

Contributors

herronelou avatar radexito avatar yvigunderscore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nuke_dag_capture's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.