I'm new to python and Blender and sometimes I find strange things. My problem is I'm trying to understand an operator behavior but something's missing. I'm in this situation:
I select a mesh outside edges then I call a grid fill operator. Then the operator runs and I'm presented with the filled mesh and the parameter window where I can change values.
I'd like to know how that value, precisely "12", is set. From tests I did, it looks like it's something related to the number of selected edges, and changes every time geometry is changed. To correctly use the operator, I need to know how it's set, hence my question: how can I find that operator preset source code?
Mind, I'm not asking about this:
I already know that. I'm asking where is the source code which sets the "12" value. Thank you.
MESH_OT_fill_grid
operator insource/blender/editors/mesh
and the functionbm_grid_fill
insource/blender/bmesh/operators/bmo_fill_grid.c
. That's exposed to the python api as...mesh.fill_grid()
with a span default value of1
as you can see in the console or here: docs.blender.org/api/blender_python_api_current/… $\endgroup$bpy.ops.CATEGORY.NAME
, what's actually pretty nice. Why you are out of "luck"? Blenders API is well designed compared to others IMHO. $\endgroup$