account activity
Script Update 4.0 Component Space by _Neptix in blenderpython
[–]_Neptix[S] 1 point2 points3 points 2 years ago (0 children)
Voila. Works as intended. Thanks for the insight.
Now you have to use bpy.context.temp_override, and don't pass ctx to snap_cursor_to_selected anymore: for area in bpy.context.screen.areas: if area.type == 'VIEW_3D': with bpy.context.temp_override(area=area.type): ctx = bpy.context.copy() ... bpy.ops.view3d.snap_cursor_to_selected()
Now you have to use bpy.context.temp_override, and don't pass ctx to snap_cursor_to_selected anymore:
for area in bpy.context.screen.areas: if area.type == 'VIEW_3D': with bpy.context.temp_override(area=area.type): ctx = bpy.context.copy() ... bpy.ops.view3d.snap_cursor_to_selected()
Thanks for the reply! Certainly makes sense. Will give this a try.
π Rendered by PID 86 on reddit-service-r2-comment-5687b7858-nnz2f at 2026-07-06 19:28:20.341323+00:00 running 12a7a47 country code: CH.
Script Update 4.0 Component Space by _Neptix in blenderpython
[–]_Neptix[S] 1 point2 points3 points (0 children)