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

Accelerator

9k members โ€ข Free

1 contribution 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 โ€ข 4d
The past few days, I've been working in that same file. But to isolate it, I opened blender to a clean file to test the single commands, each of them worked. I had somehow gotten blender into an odd state in the prior file. There was some kind of interaction when I was slowly building up the code in 4.5 to apply the hex transformed linear rgb value to the plane. I had cleaned up the code in 4.4 and when pasted into a fresh 4.5 the code works as intended. Thank you for that, I will remind myself to build in a clean file if a set of commands returns the state failure.
2 likes โ€ข 4d
For reference, it was working fine in the python console but would fail when run on the text editor window.
1-1 of 1
Zack Crenshaw
2
15points to level up
@zack-crenshaw
3D printer, programmer, video editor, strategy coach

Active 9h ago
Joined Nov 25, 2025
Powered by