Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue #41

Closed
julesmsa13 opened this issue May 14, 2024 · 5 comments
Closed

Installation issue #41

julesmsa13 opened this issue May 14, 2024 · 5 comments

Comments

@julesmsa13
Copy link

Hey ! TY for the work, it looks great.
Unfortunaly I got this error when i want to create a projector :

Python : Traceback (most recent call last):
File "C:\Users\Utilisateur\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Projectors-main\projector.py", line 555, in execute
projector = create_projector(context)
File "C:\Users\Utilisateur\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Projectors-main\projector.py", line 505, in create_projector
add_projector_node_tree_to_spot(spot)
File "C:\Users\Utilisateur\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Projectors-main\projector.py", line 245, in add_projector_node_tree_to_spot
loc = root_tree.nodes['Emission'].location
KeyError: 'bpy_prop_collection[key]: key "Emission" not found'

Ty for your help

@Ocupe
Copy link
Owner

Ocupe commented May 14, 2024

Did you download the addon from here?

Your path looks wrong:

C:\Users\Utilisateur\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Projectors-main\projector.py

Should be:
C:\Users\Utilisateur\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Projectors\projector.py

Try uninstalling the addon and then downloading and installing the version linked above.

@julesmsa13
Copy link
Author

Thank you for your response! After following your instructions, here is the error message again:

Python : Traceback (most recent call last):
File "C:\Users\Utilisateur\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Projectors\projector.py", line 555, in execute
projector = create_projector(context)
File "C:\Users\Utilisateur\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Projectors\projector.py", line 505, in create_projector
add_projector_node_tree_to_spot(spot)
File "C:\Users\Utilisateur\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Projectors\projector.py", line 245, in add_projector_node_tree_to_spot
loc = root_tree.nodes['Emission'].location
KeyError: 'bpy_prop_collection[key]: key "Emission" not found'

It appears that the script is attempting to access a node named "Emission" in root_tree.nodes, but this node does not exist, leading to a KeyError.

@Ocupe
Copy link
Owner

Ocupe commented May 14, 2024

Thanks for checking, I'll look into it when I have time. Just a heads up, this may take some time. PRs are always welcome.

@julesmsa13
Copy link
Author

Thank you for your response. By changing the language of Blender (switching to English), the issue was resolved. Strange, I didn't think that the interface language would affect the functioning of the addons!

If you have a moment to spare, could you tell me how to change the projected image? I placed my image in the indicated node, but nothing changes.

Thank you in advance.

failing loading2

@Ocupe
Copy link
Owner

Ocupe commented May 17, 2024

Hey @julesmsa13, this is unexpected that changing the language has an effect on the addon. I guess the node name should not be used to look up the node. Thanks for investigating.

You never have to touch the node editor to change the image texture. Changing the image is done in the UI here:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants