I was intending to create a script to build a slightly complex shape, so that I could edit the parameters manually to get the dimensions how I want exactly, and try different sizes. The process of building the shape manually involves selecting vertices and then using Extrude_region, selecting vertices, extruding the region again and so-on. I switched on Debug so I could see all the commands including the vertex selection ones, and as carefully as I could, copied the relevant commands into a script file.
However, I found that it runs the first couple of commands, to create a cube and enter edit mode. But when it comes to the first command for selecting a vertex, I get:
RuntimeError: Operator bpy.ops.view3d.select.poll() failed, context is incorrect.
And it does that even when I directly paste the command into the console window.
if I can’t use that command, how do I select vertices in a way that is acceptable to the python script?
Thanks in advance,