How To Append a Node group from another Blend file that is Present in my D drive on my windows computer. I wan't to Append a Material and path to my material is - - D:\2.8\Test01.blend\Material\Test_Material using a python script.

Can Anyone Help me Out ?

  • 1
    $\begingroup$ blender.stackexchange.com/a/92676/442 $\endgroup$ – Moog Sep 26 '19 at 7:21
  • $\begingroup$ This Script which you suggested is not loading my file path it is showing error - (Traceback (most recent call last): File "C:\Users\Rakesh\Desktop\Script.blend\Text", line 16, in <module> OSError: load: C:\Users\Rakesh\Desktop\Fire Shader Advanced.blend\Material failed to open blend file Error: Python script failed, check the message in the system console) $\endgroup$ – Rakesh choudhary Sep 26 '19 at 8:05
  • 1
    $\begingroup$ Also see blender.stackexchange.com/questions/139322 $\endgroup$ – Moog Sep 26 '19 at 9:42

I finally got the answer of this problem this scipt worked for me - I got this from somewhere on internet

import bpy
path = "/Users/Rakesh\Desktop/wallpapers/FIRE SHADER/Fire Shader Advanced.blend\\Material\\"
material_name = "domain"
bpy.ops.wm.append( filename = material_name, directory = path)
| improve this answer | |
  • $\begingroup$ Could you please post your code? $\endgroup$ – brockmann Sep 28 '19 at 11:27
  • $\begingroup$ I just Made a New Material and Imported it using this script - import bpy path = "/Users/Rakesh\Desktop/wallpapers/FIRE SHADER/Fire Shader Advanced.blend\\Material\\" material_name = "domain" bpy.ops.wm.append(filename=material_name,directory=path) $\endgroup$ – Rakesh choudhary Sep 28 '19 at 11:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.