LineDrawer v1.1

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Matthew Shaw
Draws lines that can be dashed, animated and customised.
9.0 or later
04 Jul 2016

Simple line drawing utility. Can draw straight or adjustable dashed lines, can be animated to draw / move. Uses python callbacks to keep the interface tidy, simply click a button to add, insert or remove a point.


Updated to fix a couple of bugs:

  • A dashed line with only two points will no longer draw over itself.
  • Fixed the Insert / Delete buttons not correctly handling animated points.
  • Time no longer draws anything at 0 value.


To install, unzip the folder into your plugins folder and add it's path in your, eg:



The tool is currently limited to 16 points but can be easily increased as follows:

  1. Open Lines.cpp from the plugin folder.
  2. On Line2, change the upper_limit number to the number you require.
  3. On Line 40, duplicate the above line, increasing the number of the pt until you are one less than your the upper_limit you set in step 2 (eg, pt24 for 25 points)
  4. On Line 89 (This will have increased by the number of lines you added in step 3), duplicate the above line, this time incrementing both numbers (eg, points[24] = pt24;)
  5. Save the script and restart Nuke.
  6. Place a BlinkScript node, select 'Specify Output format' under the 'Kernel Parameters' tab.
  7. Under the 'Blink Script' tab, press the folder icon and navigate to the Lines.cpp script and press 'Load'.
  8. Under the 'Kernel Parameters' tab, press the 'Publish' button. This will create a new 'Lines' node.
  9. Select the new 'Lines' node, and in a script editor, enter and run the following:
node = nuke.toNode('Lines')


This is a helper function which will automaticallly add the python callbacks and their buttons, as well as tidy up the interface. You can export the gizmo as normal from here.





Please login in order to download these files.


0 # Mads Hagbarth Damsbo 2016-07-03 12:12
Great stuff!
0 # dfsfs klj 2018-06-04 09:30
Really nice plugin! But I have problem with the Lines_Callbacks.

When adding or removing point I get:
name 'Lines_Callback s' is not defined

How can I fix this?
0 # Ilia DImo 2020-01-20 14:15
I have the same bug?
0 # Praket SD 2022-08-25 06:34
Thanks! Simple and very useful tool.
0 # Ran Xie 2024-02-14 00:24
If you're using this tool in Nuke 13+, due to the nature of Python3 instead of Python2, the Lines_Callback. py file will have some errors.

Just change all instances of 'xrange' to 'range'.

You have no rights to post comments

We have 2268 guests and 48 members online