Python Scripts errors on Blender 4.0
I know it's too soon but there it is :)
Thanks @Anemovatis 😄 I'll try to have a look over the weekend.
Is there any update on this?
It seems that the node group structure changed, see here. I managed to get rid of the errors but it doesn't seem to work yet.
In add_projector_node_tree_to_spot(spot) I tried to change
output = node_group.outputs
output.new('NodeSocketVector', 'texture vector')
output.new('NodeSocketColor', 'color')
to
node_group.interface.new_socket(name="texture vector", in_out='OUTPUT', socket_type='NodeSocketVector')
node_group.interface.new_socket(name="color", in_out='OUTPUT', socket_type='NodeSocketColor')
similarly also in create_pixel_grid_node_group().
Like this, I got rid of the errors but the projection didn't seem to work, I also have no comparison of how it should behave, tried this plugin for the first time ;).
Cheers
whats the current state of this? will this be fixed soon?
I had a go at fixing the python bugs too and as with ffurrer the errors went away but the result is all glitched out. A similar thing happened when I loaded a project from Blender 3.x which was working correctly in Blender 4 - ie I didn't get any python errors doing that but the projection is glitched.
Hi, please try the new pre-release and let me know if it solves your problems: https://github.com/Ocupe/Projectors/releases/tag/v2024.0.0-rc1
For those interested, the problem was introduced by changes to the API and the way Spotlights works:
- https://projects.blender.org/blender/blender/commit/e4ad58114b9d56fe838396a97fe09aff32c79c6a
- https://projects.blender.org/blender/blender/pulls/109329
Hello, adding a 2nd projector I have the issue, that after moving/rotation that 2nd projector, some of the projection onto walls shown with Cycles (Viewport Shading) is cut off. If I disable the new 2nd Spotlight (the light parented below the Projector) the 2nd projector is switched off, and the old 1st projector show the correct image.
I'm investigating further. In any case: Thanks for developing and supporting this tool :-)
@backhausmartin Could you try it with the new release? If the problem persists, could you provide me with a .blend file, some screenshots or a video? Just to verify that we are talking about the same thing.
I'm going to close this, but feel free to re-open it if the problem still exists.
am I the only one still having these issues?
I'll check soon and report
am I the only one still having these issues?
@jurassicjordan Have you updated to the latest version? The new version does not migrate "old" projectors to work with the new Blender versions. So you have to start over and create new projectors with the new version of the add-on.