04 March, 2021

Blender Python Tutorial: Redo Operator

 

 

In this video we will be taking a look at how we can add the Redo Function to our add-ons.. *Spoiler Alert* - It's super easy!..

The Redo Operator Panel is a fantastic little addition to any add-on, it gives the user more control of the Operator (after Execution). For this example I will be using a Template Panel and Operator. You can find the Template script here.

I add a cube and change the location (though this could be any function or action you want). Then by adding some BL info in the operator we can add our Redo Panel. 

Once we have it working we can then make it look better by turning the Operator into a Pop-up Dialog Box (which is something we covered in a previous video). We can also make it look pretty by defining the draw method (again something we covered in a previous video).

Scripting Playlist

I hope you find this video helpful and I hope you guys are enjoying the series so far!.

As always, thanks for Reading!..

1 comment:

  1. Thanks alot for the tutorial but I downloaded blender 2.93 and this method doesn't seem to be working there, even in the script for linking the redo Operator to a node

    ReplyDelete