# Gimp.DrawableFilter.set_opacity

    @accepts(Gimp.DrawableFilter, float)
    @returns(none)
    def set_opacity(self, opacity):
        # Python wrapper for gimp_drawable_filter_set_opacity()

This procedure sets the opacity of self on a range from 0.0 (transparent) to 1.0 (opaque).

The change is not synced immediately with the core application. Use [method@Gimp.Drawable.update] to trigger an actual update.

Since 3.0

self

  The drawable's filter.

opacity

  the opacity.