-
Notifications
You must be signed in to change notification settings - Fork 436
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
reports an error when i try to add spaceship #51
Comments
I also have this issue; did you find a solution? :) |
Same here. |
To fix this, open spaceship_generator.py and change line 340 from: |
Hey there, I just came along with the same issue. If you reach out to the latest blender API website you may see that they change the argument namings: https://docs.blender.org/api/current/bmesh.ops.html. I guess the name used to be "diameter" but apparently it is now "radius". So just change all "diameter1" "diameter2" to "radius1" and "radius2" you should be fine. |
Ah, Yes! Thanks for detailing the solution! I found that ldo had forked it and got it working, but hadn't yet done a DIFF to see what they had changed. |
It looks like you need to change all instances of (and make those values whole integers; so no and all instances of |
Report: Error
Python: Traceback (most recent call last):
File "/Users/enda/Library/Application Support/Blender/3.1/scripts/addons/add mesh SpaceshipGenerator/init.py",line 43, in execute
spaceship generator.generate spaceship(
File "/Users/enda/Library/Application Support/Blender/3.1/scripts/addons/add mesh SpaceshipGenerator/spaceship generator.py", line 669, in generate spaceship
add surface antenna to face(bm, face)
File "/Users/enda/Library/Application Support/Blender/3.1/scripts/addons/add mesh SpaceshipGenerator/spaceship generator.py", line 341, in add surface antenna to face
result = bmesh.ops.create cone(bm,
TypeError: create cone: keyword "segments" expected an int, not float
location: :-1
The text was updated successfully, but these errors were encountered: