<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I want to discuss a problem before I add it to the bug tracker. Not
sure that it is a bug, or a side effect of a new feature. I was not
sure where to post, on this list or on BF Committers.<br>
<br>
_The situation of the feature of remembering the last parameters for
an operator_:<br>
<br>
Create a Torus (or any Add-on Mesh object), change one parameter
(maybe the radius). Delete the Torus and add a new one. There the
last parameters are reused. The radius is the value of the first
Torus. <br>
This is a relative new feature, IMHO came with the "Operator
Presets", but not sure.<br>
In the UI of the Operator, there is a button "Reset" to set the
parameters back to default values.<br>
<br>
The same behavior is for ops called with python.<br>
You can type in console:<br>
<i>bpy.ops.mesh.primitive_torus_add(major_radius=4.0)</i><br>
delete the torus and than type in console:<br>
<i>bpy.ops.mesh.primitive_torus_add()</i><br>
the 2nd torus will have a radius of 4.0, too.<br>
<br>
and here starts the bug.<br>
<br>
_Strange behavior, bug or feaure?_<br>
<br>
printed values are not equal to used values<br>
If you type:<br>
<i>bpy.ops.mesh.primitive_torus_add</i><br>
(without brackets!) than blender print the default values for the
torus (in our case "<i>major_radius=1.0</i>') in the console. But if
you add a new torus it's radius is 4.0?!?<br>
This feature is maybe usefull for calling with UI, but as a python
operator it seems buggy. I would expect, that<br>
<i>bpy.ops.mesh.primitive_torus_add()</i><br>
would add a torus with the default values.<br>
<br>
How can I add a torus with default values, in case I have added one
with changed parameters before?<br>
Do I have to set all parameters on adding an object with python?
Bec. I can't know which parameters are different to default values
on calling the operator. :(<br>
<br>
How can I reset the operator with python?<br>
I can't find an API call to reset it. (like the reset button in the
UI) <br>
<br>
I hope that someone can help me with my qestions. If not I'll add a
report to the tracker. Maybe the bug, that the console prints
different values, than the ones that are used.<br>
<br>
happy blending,<br>
Conz<br>
</body>
</html>