X_Tesla v2.0

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Xavier Martín
With this Gizmo you will be able to create lightning and electricity effects. Electric arcs will be procedurally created between two points.
9.0, 8.0 or later
Linux, Windows
08 Nov 2016


With this Gizmo you will be able to create lightning and electricity effects. Animated electric arcs will be procedurally created between two points.

The gizmo includes some realistic render option such as the temperature based chromatic aberration and glow, an advanced soften filter, an easy to use 2 colour system. Or you can just disable everything with a simple check box, that’s also OK.

You can fins more information on my website.





Please login in order to download these files.


+10 # Frank Rueter 2015-03-03 16:08
this is excellent, thanks so much for sharing!
# Xavier Martín 2016-11-08 17:25
Thanks! :D
+8 # ni Ra 2015-03-03 17:21
nice work! thanks a lot!
+4 # kiran nani 2015-03-12 09:42
Nice.. But while loading in nuke 7..Its popping many errors like.
Expression12.enable_mix_luminance: no such knob Expression12.fa lse: no such knob.
ERROR: X_Telsa.Ramp12. p1: Nothing is named "parent.Branch"
+1 # Xavier Martín 2015-08-31 13:17
It may not work properly on previous versions of Nuke... I always try to give to my tools as much compatibility as I can, but for many reasons, that is not always possible. Right now X_Tesla is only compatible with versions 8 and forward.
# Steve Sexton 2015-12-01 00:26
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 17:26
This has been fixed in the new version!!! :)
+3 # David Borrull 2015-03-12 17:25
Thanks for sharing.
+4 # djati waskito 2015-03-15 12:43
I am speechless..thi s is stunning. Thank you for sharing Sir..!
+1 # Xavier Martín 2015-08-31 13:18
Thank you very much :)
+3 # Caslav Bozovic 2015-03-17 18:00
wow, great job Xavier!
+3 # claudio antonelli 2015-04-20 12:49
Amazing plugin, love it.

Do you think its possible to extend it to a Scene?
Using Axis points to define the Start and the End of a LBolt?
# Xavier Martín 2015-08-31 13:22
I think it would be possible to project 3D points using a camera to the XY coordinates, and then link those points to the start - end points of X_Tesla. And maybe with some trigonometry we could even make the lightning bolt be wider as it gets closer to the camera.

BUT! The current animation engine only works in 2D (that's one of the many reasons why it is so fast). If we forced the lightning to be 3D, it would probably jitter randomly on every frame.

For now we will have to do it "Old School" and animate it in 2D. Anyway, lightnings don't last for that long! =D
+3 # Jon Howard 2015-06-29 18:57
Love this! Excellent work!
+2 # Johannus Johansen 2015-11-26 14:42
Really nice work!

Is it possible to make all branches stick to together with the main branch? They keep breaking apart when I change values
+1 # Xavier Martín 2015-11-27 10:42
Hi Johannus!

The branches sperating from the main branch is a probles caused by a Nuke known bug with expressions. What is happening is that the expressions which tell the position of the children branches are not being evaluated in the correct order.

I may have an idea of how to fix this in the future, but right now it's really complex to get Nuke evaluate python expressions properly in both the viewport and when rendering.

If the branches appear broken at render time, try to check the checkbox at the bottom of the properties. That should keep the branches together at rendertime.

Hope this helps! :)
# Johannus Johansen 2015-12-01 18:27
Thanks Xavier!

I didn't notice the "fix broken branches" checkbox, it works most of the time when I add the write node at the end, and sometimes it helps to go to the first frame.
Thanks for your help and keep up the good work!
You really know your stuff!
# Rob Geddes 2016-07-18 04:58
I love the look, sadly I can only see broken branches no matter what settings I use. Branches are broken in the viewer and the render with checkbox checked or not.

I'm testing in Nuke 9.0v8, and 10.0v3.
# Xavier Martín 2016-11-08 17:28
The core of the tool has been completely re-done! Now the split-branch problem should be a past issue! :D
+1 # Rob Geddes 2016-11-08 17:54
Amazing! Can't wait to check it out.

# Rob Truax 2016-03-03 23:41
I'm running into an issue where after I close my project and reopen the project, the gizmo comes to me with errors. Basically, all of the parameters come back with 'no such knob'

I'm in Nuke9.0v8

Aside from the errors when I reopen the project, it works wonderfully!
# Bret Watkins 2016-04-04 16:36
Having the same problem.
Fixed it by adding the gizmo to my menu.py
Here's a good guide for yah:
# Xavier Martín 2016-11-08 17:29
This problem is fixed on the new version! Hope it helps! :D
+2 # Paul Loop 2016-03-24 05:38
Awesome work, thanks a lot, Xavier
+2 # Victor Perez 2016-07-26 07:03
This is gold! Thanks for sharing Xavi!
# Xavier Martín 2016-11-08 17:29
Thank you, Victor!
+2 # Linux Rock 2016-08-09 19:45
Wow impressive, Thumbs Up...
# Ash K 2016-11-14 00:20
Thank you Xavier for the great Gizom
# Gregory Haas 2017-05-26 16:09
Hey everyone, I've recently been encountering the broken branch issue in Nuke 10.5, our farm was recently updated to this version of nuke and the tesla plugin broke as a result, the "fix broken branches" box checked or unchecked made no difference to the end result both in the viewport and rendering. the main errors that would come up looked mostly like this:
[ 8:17.21] ERROR: X_Tesla4.Branch .branch5: unexpected '"' in ""unable to sample node at given location (606.718, 608) for the current context (may be zoomed in or have a ROI set)""
or this:
[ 8:23.55] ERROR: X_Tesla7.Branch .test: unexpected '"' in ""unable to sample node for given channel (rgba.green) at current context""
After reading the above comments and trouble-shootin g as much as I could, I came to the conclusion that our Nuke 10.5 set up is incompatible. Thankfully however, we still have older versions of nuke handy and I managed to fix the issue only by going back into Nuke9 and pre-rendering the element on my machine locally. Hope this helps anyone currently experiencing any issues. After all that being said, I love the versatility and depth of this plugin Xavier, of all the ways I've employed to create plasma effects this one is by far the coolest and most user friendly. :)
+3 # Daniel Hildebrand 2017-06-09 21:03
Hey guys, as a python/Nuke newbie I was having some trouble getting this gizmo to install. Was receiving this error:

Traceback (most recent call last): File "", line 1, in RuntimeError: X_Distort: Unknown command

Eventually I realized that the "how_to_install " instructions and the "X_Tools" folder extracted from the "X_Tesla" used some different names for the python code.

For menu.py, the code should say:
toolbar = nuke.toolbar("N odes") m = toolbar.addMenu ("X_Tesla", icon="X_Tools.png")

m.addCommand("X_Tesla", "nuke.createNod e(\"X_Tesla\")" , icon="X_Tesla.png")

And in the "X_Tools" folder itself, the "Tools" Folder should be renamed to "Gizmos" to correspond with the nuke.pluginAddP ath('./X_Tools/ Gizmos') command.

So super newbie, but I feel good that I figured it out on my own. Hopefully if anyone else has this issue this will help them!
# amber wilson 2017-08-23 20:48
Hi Xavier,

Do you have a Mac version of this?
# Nicholas Hamilton 2017-11-20 04:02
Will this work with Natron?
# romain clark 2017-12-01 21:51
Whenever I try to apply this node an error appear:
invalid syntax (, line 1)
# Paul Loop 2018-02-08 15:40
Also have a problem with branches on 10.5 while rendering
# Alican Sesli 2018-08-16 03:44
This is great, I love how I can control the speed rate to get a smoother look along with everything else!

Really simple controls and the look generated is on point.
# Alexey Kuchinski 2018-08-22 19:54
Xavier this looks great, very smart setup, thank you for sharing!
Ha Ha!!! Love it!!!!
# Alexey Kuchinski 2018-08-22 20:32
....still looking into it, have no idea how you managing to create the branch which is connecting the split ones, awesome! :D
# Marcus Jungerstam 2018-09-24 13:46
I use this all the time. Great gizmo.... 8)
# Marcus Jungerstam 2018-09-24 13:46
I use this all the time. Great gizmo.... 8)
# Marcus Jungerstam 2018-09-24 13:46
I use this all the time. Great gizmo.... 8)
# Xavier Martín 2018-10-24 10:08
How often do you use this gizmo? :P
# Marcus Jungerstam 2018-10-24 14:43
3 times now. Might just use ite today for the 4th time ;)
# Joe Censoplano 2019-03-21 23:58
this is great! but can you get it to work in 3d space ? ;)
# Xavier Martín 2019-05-27 12:56
Uhh... I dunno... Can you? :P :-*
# darren coombes 2019-05-27 01:19
Hi, i'm using this with animated positions on a non-square pixel comp (2880 x 2160 pixel aspect 2) and it's jumping around and not sticking to the positon i need. ANy help?

Also, the point and and point 2 are quite close, like a taser contact.
# Xavier Martín 2019-05-27 12:58
This is a know issue, I am afraid. The tool doesn't like anamorphic formats, I am afraid! The best solution I can give you would be to pcomp the lightning effect. :-?
# darren coombes 2019-05-28 06:32
So i found if you set it to best quality, it doesn't jump around.

You have no rights to post comments

We have 2479 guests and 139 members online