I have Created a Node group Using Python Script and Now I wan't is To Convert This To Add-on, I Wanted that whenever I click a Button "Add Test Material",

It Create a Material which consist of That Node group

When this Script is Run It Appears in Physics Panel,

Can anyone Help me Out How to do that ?

This is the Script which is similar To My Script - Python Script(Link to Google Drive)

My Script is Having following errors -

  1. Node Group is Added But it is Not Connected to Material Output, how to connect this to Material Output Node.
  2. When I Click Add "Test Material" Button in the Physics Panel(here this script appears) it should add this material to node editor but material is not added but if i just re-run the script the material is added

Can Anyone Rectify this Script I will be Very Glad If My First script becomes Successful as I am Noob to Scripting in Blender.

  • 1
    $\begingroup$ More effort please. Also, please post your code. BTW: the answer is simple once you understand what an operator is, read: How to create a custom UI? $\endgroup$ – brockmann Oct 1 '19 at 10:23
  • $\begingroup$ I have Edited this Question to make it more Clear Please help me now, I need Help $\endgroup$ – Rakesh choudhary Oct 2 '19 at 7:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.