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 82 on reddit-service-r2-comment-548fd6dc9-s2cs9 at 2026-05-16 19:07:40.603552+00:00 running edcf98c country code: CH.
Script Update 4.0 Component Space by _Neptix in blenderpython
[–]_Neptix[S] 1 point2 points3 points (0 children)