I'm new to Blender Python and writing a start-up script that imports mesh from another application to Blender for rendering.
I have a small problem however - imported mesh objects are too large for default Blender view-port, so I wanted to somehow make the script correct this issue.
I tried something with bpy.ops.view3d.view_all()
but I can't get it work. I read the execution-context docs, but I always get this error:
RuntimeError: Operator bpy.ops.view3d.view_all.poll() expected a view3d region
Any suggestions?
bpy.ops.view3d.view_all()
raises same error, and I guess I have to access this command from some other path. $\endgroup$Clamp Size
option) $\endgroup$