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

AttributeError: 'NoneType' object has no attribute 'objects' #20

Open
JVimes opened this issue Jan 20, 2023 · 5 comments
Open

AttributeError: 'NoneType' object has no attribute 'objects' #20

JVimes opened this issue Jan 20, 2023 · 5 comments

Comments

@JVimes
Copy link

JVimes commented Jan 20, 2023

I installed the add-on, selected default cube, clicked "New Emitter" and got the following error. I'm using Blender 3.4.1 on Windows 10.

bpy.ops.rigidbody.object_add()
Python: Traceback (most recent call last):
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\projectile\ops.py", line 66, in execute
    object_collection.objects.link(empty)
AttributeError: 'NoneType' object has no attribute 'objects'

@natecraddock
Copy link
Owner

Hi @JVimes thanks for reporting! I don't keep up-to-date with Blender as much as I should, so it's possible the latest version introduced some incompatibilities. I'll look into this later today!

@JVimes
Copy link
Author

JVimes commented Jan 20, 2023

Thanks! No rush of course.

@natecraddock
Copy link
Owner

Hi @JVimes, sorry for the delay. I think I found the issue. Can you confirm?

I think what happened is that the cube was under the scene collection rather than the built-in default collection right? I can fix that easily if that is the case.

@JVimes
Copy link
Author

JVimes commented Jan 25, 2023

Oh, yes, I got rid of the nested collection in my default scene. Sounds like a likely culprit.

@natecraddock
Copy link
Owner

Thanks! Short-term workaround is to put your object in a collection. I'll make some code changes to handle the scene collection soon

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