[Bf-python] Default values for an operator

Constantin Rahn conz at vrchannel.de
Wed Feb 29 17:01:11 CET 2012


Hi,

sorry to reply to my own mail, but I think I have possibly an idea how 
solve the problem.

I would prefer, that an operator is always called with the default 
values, so that
/bpy.ops.mesh.primitive_torus_add()
/will always add an torus with default parameters.

Same for the UI, but for that the button "reset" should have the opposit 
function. Something like "get last values/parameters" instead of reset.
Maybe the API could offer an option to add an object with last parameters.

/bpy.ops.mesh.primitive_torus_add(parameters = 'PREVIOUS')/

or something like that.

Maybe to add an additional feature here, the parameter could be one of 
the "Operator Presets".

/bpy.ops.mesh.primitive_torus_add(parameters = 'Preset abc')/

In most cases the user will not use many of the last parameters.
In my current Add-on, there are extreme values where the generation of 
the object will take some seconds.
In the workflow of the Add-on you have to add more than one object in a 
scene and only some of the objects have extrem parameters. But than on 
the next added object the bahavior of last parameters is really annoying.

The function of the "operator presets" gives a nice otion to store the 
last value, so the button "get last parameters" would fit to the idea of 
the operator presets, "PREVIOUS" would be like one of it.

I think this basic changes in the workflow of blender would make sense. 
For my current procjet it would fit.

Happy blending
Conz

Am 29.02.2012 15:41, schrieb Constantin Rahn:
> Hi,
>
> 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.
>
> ...
>
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20120229/026ad772/attachment.html>


More information about the Bf-python mailing list