Layer Effects Stack Access

Dear developers,
Is there anyway to change the order of a “Gimp.DrawableFilter” in the Layer Effects stack using Python? I’m needing a “Gimp.DrawableFilter.get_position()” and “Gimp.DrawableFilter.set_position()” functionality because my plug-in creates and removes filters at the user’s whim. These functions would definitely come in handy considering the filter’s flexible order, longevity, and reusability properties.

Thank you for your attention,

Charles

Similar Question:

Is it possible to unexpand groups via python script?

You can compute the position by calling https://developer.gimp.org/api/3.0/libgimp/method.Drawable.get_filters.html. Internally there are functions to move a filter up/down but it doesn’t look like they are exposed to the plug-in API.

Feel free to open a feature request to add that to our API.

Is it possible to unexpand groups via python script?

I don’t think so.

Thanks for the tip. The “Gimp.Drawable.get_filters(layer)” is actually something I could use to get a halfway solution. I’ve never made a Gimp feature request. Where would I go to do that?

Features can be requested in the issue tracker. Make sure to mention your use case and anything else that may be relevant.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.