[Bf-committers] Change background in IMAGE_OT_new

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Feb 27 15:50:02 CET 2012


Hi,

The user interface for the operator is automatically generated, though
it's possible to create a custom one by creating a new ot->ui
callback, see image_save_as_draw for an example. This is only done in
a few places, because you'll need to manually add buttons for all
properties then.

Would this be another way to set the property "color"? This seems a
bit strange to me since you can already change it quite easily, but
maybe it is an operation you do often?

Brecht.

On Mon, Feb 27, 2012 at 12:20 PM, Fabio Russo <ruesp83 at libero.it> wrote:
>
> Hello all,
> anyone can help me, I have a question about IMAGE_OT_new.
> I wanted to add the ability to choose the background: white, transparent or RGB.
> code: http://www.pasteall.org/29527/c
> how can I change the UI according to the choice of the background, in IMAGE_OT_new?
> Tthanks in advance,
>
> Fabio Russo (ruesp83)
>
> P.S.: Sorry for my english!!
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers


More information about the Bf-committers mailing list