4
$\begingroup$

I am trying to customize the blender GUI so that I can customize the Render button in the GUI to call a customer script as opposed to the default option.

I would like to know if there is a way to achieve the same and would appreciate if someone can point me to the pointers for the same.

$\endgroup$

1 Answer 1

1
$\begingroup$

The easiest way is to right click on the render button (or any UI item) and select Edit Source. You will see a message in the info header to 'See properties_render.py in the text editor'. Simply change one of your windows to a text editor and select the properties_render.py from the text block list. You will find the cursor located on the line used for the UI item you selected.

If you search the blender python api documentation for UILayout you will find the operator function used there takes the operator name as the first argument. So you would change "render.render" to the name of the operator you want to use.

Remember to save the edited text block back to the text file. Also this file will be replaced with each blender upgrade so creating an addon may be a wiser choice for something you plan to keep using.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .