X_Distort v4.1

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Xavier Martín
Create distortion and deformation effects such as heat distortion or plasma with chromatic aberration. Can also be used to improve / refine your rotos.
11.0, 10.5, 9.0 or later
Linux, Windows
24 Nov 2017


This gizmo allows you to distort images with control and flexibility. It is more customizable and easier to use than Nuke's IDistort. You don’t need to copy any channels and you have many other controls to play with. You can blur the parts of the image which are being distorted to get a smoother result.
You can distort an image using its own channels, using another image or using an automatic noise. You can choose the detail of the deformation.
You can distort each color per separate, creating a realistic chromatic aberration effect. You can decide the quality of the effect in order to speed up render times.


  More documentation on my website.









Please login in order to download these files.


+2 # Max Steven 2015-04-02 12:38
Hello, I have tried your script lately and it's a amazing much more than the new spiderman :)) So really wanna express my gratitude and admire your talent so much. And just one thing, when I use your script in nuke 7 it keep asking for this:
X_Math2.enable_ mix_luminance: no such knob
X_Math2.false: no such knob
Of course you have written this script is for Nuke 8 but can I edit something to make it work with nuke 7? because without that error it just works fine :)
# Steve Sexton 2015-12-01 00:15
I solved this:

open the .gizmo in a txt editor and
enable_mix_luminance false
Replace with:
#enable_mix_luminance false

As far as i can tell it has no effect on the gizmo
# Xavier Martín 2016-11-08 11:22
This problem has been solved on the new version. It should be now compatible with Nuke versions 7.0 and forward, in both Windows and Linux.
+3 # adam jones 2015-11-08 02:44
love the gizmo, just started playing around with it, one thing that I noticed.

is if you have one instance of the gizmo in the DAG with it distorting from a distortion map and then you copy and paste the gizmo, In the pasted gizmo the "distort from" pull down is set back to "source", issue being the gizmo no longer works till you manually set the "distort from" pulldown again, changing any other setting doesn't change this, only resetting the "distort from" pull down.

anyways awesome gizmo big fella
# Xavier Martín 2015-11-18 11:10
Wow! Thanks for letting me know! I didn't notice that bug! :)
+2 # J0hann Roche 2015-11-26 14:15
thanks for sharing !
# Xavier Martín 2016-11-08 11:10
I fixed a bunch of known bugs, such as not being able to distort any channels other than rgb. Now the tool should work much more reliably.
+2 # J0hann Roche 2016-11-08 17:13
Thanks again for updating your tool >> very useful and fast for creative effects
+1 # Xavier Martín 2016-11-08 17:32
I'm glad it helps! I wish I could update my tools more often, but as it turns out, I'm a pretty busy man! :)
# Erwan Leroy 2016-12-23 16:49
Hi Xavier
I found that lowering the distortion map blur also lowers the strength of the distortion.
By 0 (no blur, although still blur of 1 in the gizmo) there is no distortion whatsoever.
I changed that for my own version, but it's a strange behavior.
# Bastian Traunfellner 2017-01-05 15:00
Hi, trying to run this in Nuke 6, rewrote a few things but still can't wrap my head around this errors:

Traceback (most recent call last):
File "", line 1, in
RuntimeError: /Applications/Nuke6.0v3-32/Nuke6.0v3.app/Contents/MacOS/plugins/X_Tools/Gizmos/X_Distort.gizmo:
VectorBlur1.channels: {Copy_Source.ch annels} is not a layer or channel name
IDistort1.channels: {Copy_Source.ch annels} is not a layer or channel name
VectorBlur2.channels: {Copy_Source.ch annels} is not a layer or channel name
Merge1.also_merge: {parent.Copy_So urce.channels} is not a layer or channel name

why doesn't this pick up?
channels {{{Copy_Source.ch annels}}}

can't I hardcode it somehow to source.rgb?
I tried that but doesn't work maybe I'm wrong in the syntax.

any help greatly appreciated!!
+1 # Xavier Martín 2017-11-14 23:10
New update v4.0 !
This has been updated to work in GPU, if your computer has a compatible graphics card.
Even if you are using CPU, there should still be a major speed improvement.
# Ermes Vincenti 2017-11-24 13:11
Hey Xavier! GREAT NODE! You might have an error in Blinkscript1 under "use GPU if available". It looks like the expression is "parent.useGPUI fAvailable" and it doesn't work obviously.
I think it should be "parent.BlinkSc ript.useGPUIfAv ailable". In facts, the main node controller for GPU activates only the one in Blinkscript. Just check it if it is only my problem. Again, great work buddy! Cheers
# Xavier Martín 2017-11-24 19:13
Wow! Well spotted! You will definitely have that fixed in the next version! ;-)
# Xavier Martín 2017-11-24 20:38
This issue has been resolved now! (v4.1)
# BIll Marsh 2018-03-09 14:03
Do you intend to make X_Distort work under OS X?
# Xavier Martín 2018-03-09 16:31
Hi Bill!
What kind of issue are you having? :)
# BIll Marsh 2018-03-10 13:36
The X_Distort properties panel is missing half of the controls.

It doesn't look like Nukepedia supports attachments, but I can email you a screen grab of what X_Distort looks like under OS X.
# Xavier Martín 2018-03-10 22:56
If you could post an image (i.e. imgur), and specify the Nuke version and X_Distort version that would help a lot! :D
# George Abourjeily 2018-06-12 10:52
String line 1 unknown command nuke 11 nany help please
# Xavier Martín 2018-06-12 11:14
Hi, could you specify what steps are you following that lead you to this error message? I'll try my best to help you.
Thank you!
# George Abourjeily 2018-06-12 11:25
i just click on the icon inside nuke and immediately popup unknown command
# George Abourjeily 2018-06-12 11:37
nukex11 v01
# Xavier Martín 2018-06-13 10:14
It looks like an installation error.
It's hard to say what went wrong, here are some resources that may help you. :-)

# Niclas Werres 2018-07-05 08:32
Just had the same problem, but I could fix it. The problem was, that the gizmo is in the folder Tools, but your text in your txt is looking for gizmos. So I renamed the folder, updated inside nuke and now it's working.

Thank you for this awesome tool. Missed so much the different kinds of distort from after effects, when I made the switch.
# Gustav Berg Pedersen 2018-08-31 14:55
Super useful gizmo, great work!
I get the following error when rendering through deadline:

"X_Distort1.AdjBBox1.disable: parent.input0 is not a number"

This is on Nuke11.1v3 by the way.
# Rikin Patel 2019-02-12 19:54
It worked for me by deleting the AdjBBox node in the group.
# Vyacheslav Khramyshev 2019-03-31 15:17
Thank you very much, please explain how to improve your mask with a gizmo? I still do not understand what to do.
# Chris Staves 2019-08-26 10:13
I just downloaded the latest version (4.1), and it does not look like the screenshots in the description. It looks like an older version or something, as it is much simpler. I don't see the checkboxes for "Avoid Dispersion" or "Treat as UV" for example. It has a separate "GPU Settings" tab, which your screenshots don't show. However, when I go to the About tab, it reports version 4.1 as the current version. Also, this version doesn't even appear to be saved as a gizmo. It shows up as a normal group.

You have no rights to post comments

We have 2317 guests and 47 members online