0
$\begingroup$

So, recently I was planning on creating a 3D model pack for blender 2.9 in which my 3d models can be easily accessible within blender through addon. My plan was to make a small little tool shelf (at the right panel) in which it shows preview image of the 3D model and when I click add button after selecting the desired 3D model from preview, it should append the object. This is the Style of blender addon.

As you can see it has categories and there are two categories and the previews are working fine.

My problem is:

When I click on Add button it suddenly pops up with an error message which is given down below: enter image description here

and I can't figure it out for a long time why it happens since I am a beginner in the field of coding. I just reached till to this point by seeking help from others. I will provide the code of the addon so that if anyone could help me I would appreciate that. Thank you!

LINK OF CODE AND FILE STRUCTURE

$\endgroup$
4
  • $\begingroup$ See: blender.stackexchange.com/questions/38060/… $\endgroup$ Sep 22 '20 at 13:26
  • $\begingroup$ Thanks for the link. But I cant figure out the solution to my problem. Each time I update the code it shows the same error. What should I do? $\endgroup$
    – Dark Line
    Sep 22 '20 at 17:40
  • $\begingroup$ I would recommend playing around with bpy.ops.wm.append() operator alone to figure out how to use it correctly. $\endgroup$ Sep 23 '20 at 10:48
  • $\begingroup$ Can you (or someone who knows) somehow help me with this by editing the code I have been given? Five days have passed and still I couldn't figure out the solution yet. :( $\endgroup$
    – Dark Line
    Sep 30 '20 at 11:21
1
$\begingroup$

This looks like a path error, similar to what is described in this question.

Append python script for Blender 2.8

$\endgroup$
4
  • $\begingroup$ Thanks for quick response. I will check it out and I hope this works out. $\endgroup$
    – Dark Line
    Sep 22 '20 at 13:27
  • $\begingroup$ Thanks for the link. But I cant figure out the solution to my problem. Each time I update the code it shows the same error. What should I do? $\endgroup$
    – Dark Line
    Sep 22 '20 at 17:41
  • $\begingroup$ Does it matter that the error isn't seeing '/light.blend', just '/light' $\endgroup$
    – Al Baker
    Sep 22 '20 at 21:01
  • $\begingroup$ I have no idea. Each time I add [+ ".blend"] extension to the last, it jumps to previous path (wall_lights.blend) which is a folder name. $\endgroup$
    – Dark Line
    Sep 23 '20 at 1:25

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.