I have been googling for a way to interrogate the 3d view using a script, to discover the locations of the faces of a cube. I have seen a lot of rather complex, daunting sample scripts creating cubes from scratch with primitives (vertex creation etc) but so far nothing that looks simple. If I have selected a cube successfully, as below:
ob = bpy.data.objects['Cube_7_7'] ob.select = True bpy.context.scene.objects.active = ob bpy.ops.object.mode_set(mode='EDIT')
(the intended cube lights up when selected and goes into edit mode, so I must have at least this basic syntax right)
How can I find out, say, the median point of the bottom face of this cube? is this straightforward (i.e. is there a face naming convention relative to the cube's position at its creation)... or is it ugly? basically, I want to identify the bottom faces of all my cubes.