Extract PSD Layer

Extract layer from a PSD to create a tree with the separate layer with crop, premult, card, linked to a scene, and camera / scanline render.

Updated: 31 March 2011

Author: ekion

Compatible Nuke versions: 6.1 or later

Compatibility: Windows

Hi everyone,

Here is my first script for Nuke.
I was working on my first photo projection, and I felt a bit bad to spend a lot of time shuffling the layer of my Read Node, and then add Crop, Premult etc.. So I tried to write a script to help a bit with this. I hope that it can be helpful to some guys ^^

Description :

  • version : v1.0
  • Input : ReadNode with a PSD that contain layers named ‘ps_’…
  • Output : Tree with the separate layer with crop, premult, card, linked to a scene, with camera / scanline render.

 

This script extract each layer named ‘ps_’something of a 8bit PSD with a Shuffle Node.
Then it add a Premult Node, a Crop Node, and a Card.
The script also add a basic scene setup with a Scene Node, a Camera, and a ScanlineRender Node.
Each card are connected to this Scene Node.

 

Incomming additions :

  • 16, 32bit support.
  • Masked layers support.
  • Layers in folder support.
  • Autocrop would be great. ^^
  • Expression linking aperture / focale of the cards to the camera.

 

Know issues :

 - If you have a bold effect on the image at first, don’t worry, it’s because the Crop node, is too large compared to your image. At the moment you have to set the Crop node manually, and it will fix this problem.

As I'm a novice, If you have any tips, feedback or optimisation, I'd be happy to hear / learn from you !

PS: I'm not sure it works on Linux / Mac, as I haven't tested it.

Cheer !

Sign in or register to download or rate.