appleseedhq / blenderseed

appleseed plugin for Blender
https://appleseedhq.net/
MIT License
274 stars 43 forks source link

Blenderseed not showing up in Render drop down #489

Closed huhwutok closed 4 years ago

huhwutok commented 4 years ago

As the title states, blenderseed is not showing as an option for one of the engines in the dropdown box. There were also some wierd hoops I had to jump through to get it to enable as a plugin (Had to tell blender to install the appleseed.zip that I had downloaded earlier) Now that it's enabled, it seems there is an issue in the initpy located in "AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\blenderseed\render" Blender's console text states [appleseed] ERROR: Failed to register class <class 'blenderseed.render.RenderAppleseed'> expected RenderEngine, RenderAppleseed class "view_draw" function to have 2 args, found 3

Previously, this error had occurred with view_update as well, but after much hassle, and eventually reverting the file to it's original text, the error started showing up now for view_draw, rather than view_update. Have no earthly idea whats going on at this point, nor could I fathom why I'd have to add an extra step to the install, figured at this point it couldn't hurt to ask the folks who know what does what.

jdent02 commented 4 years ago

So it’s indicating that something has been modified in the render init file so that the view_draw function is being called with three arguments instead of the two that it should be. Go into the addon, find the render folder, open the init.py file and look for the view_draw function. Right after the function name there should be the following:

(self, context, depsgraph)

If it says anything else then the file has been altered.

jdent02 commented 4 years ago

Btw for the sake of counting the number of arguments being passed, ignore the ‘self’ one

huhwutok commented 4 years ago

I've since reinstalled from a fresh download and it's giving me the same issue. Not sure, since I'm not familiar with object oriented in Python, but would it be possible to remove the "self" argument? I think my next step would be to make a fresh install of blender 2.80, because this plugin is too good to give up on.

huhwutok commented 4 years ago

Also, the arguments are exactly as you described

jdent02 commented 4 years ago

The ‘self’ definitely has to be there, as do the other two. I’d be curious to see what happens if you delete the addon manually. Try going into ‘AppData/Roaming/Blender Foundation/2.8/scripts/addons’ and delete the blenderseed folder.

jdent02 commented 4 years ago

FYI, ‘self’ has to be in the argument list any time a function references anything in the class it’s a part of.

huhwutok commented 4 years ago

Yep, same issue from a fresh install of the plugin, specifically from view_update.

Let me try a fresh version of blender 2.80, and if not, I'll give 2.81a a go

jdent02 commented 4 years ago

I would delete the AppData folder as well so you have a completely blank slate.

It goes without saying that I’m not having this error on my machine. I do use Blender 2.81 but I don’t think the function signature of view_update was changed. I’ll check quickly.

huhwutok commented 4 years ago

So, from a fresh install of 2.80, non-beta, deleting the appdata folder, and grabbing a fresh download of the plugin, I received this FromEnable

huhwutok commented 4 years ago

At this point, I think my computer is just haunted :/

jdent02 commented 4 years ago

Well appleseed is 64 bit only. That might be part of the problem....

huhwutok commented 4 years ago

Odd, maybe I accidentally installed the 32 version of blender

(Update: that is exactly the issue. will download the proper version and try again tomorrow)

huhwutok commented 4 years ago

UPDATE: Installed the 64 bit version of 2.80. Seems my initial issue the first time around is that while I technically using 2.80, I was using the beta version from the initial release.

jdent02 commented 4 years ago

So it’s working properly now?

huhwutok commented 4 years ago

Everything would be, now just to stop the crashes with live preview, and familiarize myself with the shader system