Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

CG Python Academy (Free)

1k members β€’ Free

Creative 3D Community

6.1k members β€’ Free

17 contributions to CG Python Academy (Free)
Blender 5.0 error (modifying blend data)
I understand that it probably is standard growing pains between versions, so learning scripting should probably keep me working in blender 4.5. I was noticing a lot of commands in the bpy.ops line of commands like bpy.ops.mesh.primitive_ico_sphere_add() and bpy.ops.mesh.primitive_plane_add() and even things like editing a material's diffuse_color was returning "cannot modify blend data in this state (drawing/rendering)" All my attempts to be in the correct state have failed on those operations, when running the script in the text editor window. I haven't seen any recent chatter on this case after the version's release. So I was wondering, is there was any way to appease the error with a workflow change?
1 like β€’ 2d
After reading your post I tried my add-on and found that 5.0 broke it as well. I'll be jumping in to fix it.
Pushing Coffee Hangout
Hey team, Due to a few ASAP items that require my immediate attention, I need to be fully focused this week. Therefore, I will have to postpone our Coffee Hangout until next week. I apologize for the last minute update. I'm really looking forward to connecting with you all and catching up then!
Pushing Coffee Hangout
1 like β€’ 2d
No worries, hope it all goes well!
Hello World!
Hi there! Just wanna learn how to use Python to avoid a lot of repeating tasks in mockups for factory design, like handrails, stairs, and so on. I'm 57 years old, learned programming 40 years ago, and I'm struggling with Python syntax based on my admittedly outdated knowledge ...
3 likes β€’ Oct 16
I code Python like C++ and miss out on all of the cool features. I feel your pain!
IGES file import add-on
I finally got my add-on working and packaged; I successfully installed it on another computer. It was a tricky first add-on, and I really appreciate the help I've received here. Huge thanks to @Victor Stepanov! I'll put it up on Github and make it available on Gumroad and Superhive for anyone who wants it off the shelf.
3 likes β€’ Sep 10
Updated the add-on to detect the scene units (default is meters) and the IGES units in the file header. I figured out that even if I specify the IGES units to be inches, Rhino saves it out as MM but specifies the units in the header, so for example a 1 inch cube is saved as 25.4mm and converts to inches when imported. It doesn't seem to do this with metric units. If I didn't check the file header, it would import as 25.4 inches. The add-on imports with proper units and proper scale now. :D
1 like β€’ Sep 17
FYI I tried submitting to Superhive, but they "no longer accept legacy add-ons with third party python modules included." I'm not sure if it's worth my time to convert my add-on to the new extension format AND submit a Wheel to PyPI. I'll upload my code to Github and submit the addon to Gumroad.
VS Code can't find bpy_extras
I've been using Blender's built-in text editor to write my addon, and I finally decided to use VS Code. The addon works fine in Blender, but it won't run from VS Code. I'm not sure if it's VS Code or one of the extensions, but it's tripping on this line: from bpy_extras.io_utils import ImportHelper Exception has occurred: ImportError - cannot import name 'ImportHelper' from 'bpy_extras.io_utils' (unknown location) File "/home/gtada/Documents/blender/scripting/iges_import/operator_file_import_iges_002.py", line 75, in <module> from bpy_extras.io_utils import ImportHelper ImportError: cannot import name 'ImportHelper' from 'bpy_extras.io_utils' (unknown location) If anybody has an idea I'd love to hear it. I used the Operator File Import template which includes this module and function.
1 like β€’ Aug 11
@Christian Coppes Thank you for the reply. I double-checked that bpy_extras is indeed installed; also, it works from within Blender's script environment. I actually don't know about "# type: ignore". I'll look it up, but if you have a quick explanation I would deeply appreciate it!
3 likes β€’ Aug 13
Thanks to Victor for helping me figure this out during the coffee break this morning! Cheers! I was trying to use the wrong Python debugger and needed to rename my file to __init__.py. Works great now!
1-10 of 17
Gregory Tada
4
77points to level up
@gregory-tada-6641
Motorcycle Designer. Los Angeles.

Active 2d ago
Joined Apr 28, 2025
Powered by