# How to set the default fill type to NOTHING (Cone, Cylinder), once and for all?

I'm banging my head trying to find any documentation, but I can't seem to find anything about that matter.

Background:
I was sick of manually changing the default vertices for Circles, Cones and Cylinders to 12.

I found this script and it works just perfectly.

# To be saved in
#    scripts/startup/
# with a .py file extension.

from bpy.props import IntProperty
from bpy.types import (
)



Problem:
Now, I'm still sick of having to change the default fill type to NOTHING.

I tried adding the following lines (one at a time, of course) to no avail:

MESH_OT_primitive_cone_add.vertices = StringProperty(name="End_Fill_Type", default='NOTHING')


I tried both with and without underscore (_).
And the same for Cylinder

Note:

I tried entering the following in a console window:

bpy.ops.mesh.primitive_cone_add(end_fill_type='NOTHING')


and also

bpy.ops.mesh.primitive_cylinder_add(end_fill_type='NOTHING')


and both worked flawlessly.

You can see the property names by hovering mouse above the field.

Note that you need to match this name in the first part of the script file before the =. The latter needs to define property in blender operator format. For the dropdown menu it's in fact enumerator type, not string. You can't really specify default value for enumerator but I found that this has the desired effect nonetheless. So the file should look like this (note you need to import EnumProperty in the beginning as well):

from bpy.props import IntProperty
from bpy.props import EnumProperty
from bpy.types import (
)