LENS EDGE EXTEND v2.0

Extends and distorts the edges of a plate through a lens matte

(Alpha or Luma), with optional chromatic separation.

First submitted: 29 September 2026

Author: Nitin Kashyap

Website: https://www.linkedin.com/in/nitin-kashyap-8541213a6?

Compatible Nuke versions: 17.0 or later

Compatibility: Linux, Mac, Windows

==============================================================

LENS EDGE EXTEND v2.0

Nuke gizmo by Nitin Kashyap

==============================================================

Compatible Nuke versions : 10 or later (Nuke 10 -> 16)

Compatibility : Linux, Mac, Windows

Python : 2.7 / 3.7 / 3.9 / 3.10 / 3.11

Menu location : NK_Tools > Lens_Edge_Extend

--------------------------------------------------------------

DESCRIPTION

--------------------------------------------------------------

Extends and distorts the edges of a plate through a lens matte

(Alpha or Luma), with optional chromatic separation.

Features:

- Lens matte from Alpha or Luma

- Blur, size and multiplier controls for the lens

- Distortion amount (positive and negative)

- Optional matte mode (distort only where the lens is)

- Optional alpha distortion and chroma separation

- One-click "all Settings Reset" button (undo-safe)

- About / Splash button with animated credit screen

--------------------------------------------------------------

PACKAGE CONTENTS

--------------------------------------------------------------

init.py adds the gizmos / Icons folders to Nuke's path

menu.py creates the NK_Tools menu

nk_credit.py credit + splash screen module

gizmos/Lens_Edge_Extend.gizmo the gizmo itself

--------------------------------------------------------------

INSTALLATION - STEP BY STEP

--------------------------------------------------------------

STEP 1 Extract the downloaded zip file.

STEP 2 Open your .nuke folder:

Windows : C:\Users\<username>\.nuke

Mac : /Users/<username>/.nuke

Linux : /home/<username>/.nuke

STEP 3 Copy these into the .nuke folder:

init.py

menu.py

nk_credit.py

gizmos/ (the whole folder)

Final layout:

.nuke/

init.py

menu.py

nk_credit.py

gizmos/

Lens_Edge_Extend.gizmo

IMPORTANT: if you already have init.py or menu.py,

do NOT overwrite them. Open the new files in a text

editor and paste their contents at the end of yours.

STEP 4 Restart Nuke.

STEP 5 Check the Script Editor. You should see:

nk_credit installed: Lens Edge Extend v2.0 by Nitin Kashyap ...

STEP 6 Create the node:

Menu bar > NK_Tools > Lens_Edge_Extend

or press Tab and type Lens_Edge_Extend

--------------------------------------------------------------

USAGE - STEP BY STEP

--------------------------------------------------------------

STEP 1 Connect your plate to Src.

STEP 2 Connect your lens matte to Lens.

STEP 3 (Optional) Connect a mask to Mask.

STEP 4 Choose "Alpha" or "Luma" in the Lens dropdown.

STEP 5 Adjust Lens Size, Blur Lens and Distortion Amount.

STEP 6 Turn on Distort Chroma and adjust Chroma Separation

for colour fringing.

STEP 7 Click "all Settings Reset" to return to defaults.

--------------------------------------------------------------

CONTROLS

--------------------------------------------------------------

Lens Alpha / Luma (default: Alpha)

Use Lens as Matte on / off (default: off)

Blur Lens blur of the lens (default: 6)

Lens Size 0 - 100 (default: 3)

Lens Multiplier 1 - 100 (default: 1)

Distortion Amount -100 - 100 (default: -4)

Distort Alpha on / off (default: off)

Distort Chroma on / off (default: off)

Chroma Separation -10 - 10 (default: 0)

--------------------------------------------------------------

TROUBLESHOOTING

--------------------------------------------------------------

NK_Tools menu missing

-> menu.py must be directly inside .nuke. Restart Nuke.

Node not found

-> Gizmo must be in .nuke/gizmos/ and init.py must be installed.

Splash does not show

-> Look for "nk_credit:" messages in the Script Editor.

To disable the credit module, set the environment

variable NK_CREDIT_DISABLE=1.

==============================================================

MIT License

Copyright (c) 2026 Nitin Kashyap

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

or register to download or rate.

Comments

or register to join the conversation.

Download Verification