Projectors icon indicating copy to clipboard operation
Projectors copied to clipboard

Python Scripts errors on Blender 4.0

Open Anemovatis opened this issue 2 years ago • 7 comments

I know it's too soon but there it is :)

Anemovatis avatar Nov 15 '23 10:11 Anemovatis

Thanks @Anemovatis 😄 I'll try to have a look over the weekend.

Ocupe avatar Nov 15 '23 11:11 Ocupe

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

ffurrer avatar Nov 29 '23 10:11 ffurrer

whats the current state of this? will this be fixed soon?

jurassicjordan avatar Dec 08 '23 20:12 jurassicjordan

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.

arcadeperfect avatar Jan 07 '24 17:01 arcadeperfect

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

Ocupe avatar Mar 02 '24 14:03 Ocupe

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 avatar Mar 05 '24 16:03 backhausmartin

@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.

Ocupe avatar Mar 10 '24 18:03 Ocupe

I'm going to close this, but feel free to re-open it if the problem still exists.

Ocupe avatar Mar 24 '24 20:03 Ocupe

am I the only one still having these issues?

jurassicjordan avatar Apr 03 '24 17:04 jurassicjordan

I'll check soon and report

RobeSantoro avatar Apr 04 '24 13:04 RobeSantoro

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.

Ocupe avatar Apr 05 '24 07:04 Ocupe