Hi all.
I know the standard command to add a primitive mesh (e. g. the cube):
bpy.ops.mesh.primitive_cube_add()
But I would like to know if there are predefined indices for the various types of mesh primitives. This would be useful in several situations, for example to randomize the type of primitive added to the scene.
I searched a lot in the Blender documentation and in the main forums/blogs, but did not find anything.
Do you have some tips to share? Is it necessary to handcraft a Python list?
Thanks
Perfect, as usual.
You are becoming my guru for Blender Python scripting. In this period I am studying quite hard to better understand the API and its applications, and your help is really precious.
Thanks.