kamilburda / batcher

Batch Layer Processing and Export for GIMP 2.99.18
https://kamilburda.github.io/batcher/
BSD 3-Clause "New" or "Revised" License
14 stars 0 forks source link

Allow to add actions with custom code #5

Open khalim19 opened 5 years ago

khalim19 commented 5 years ago

To achieve the ultimate flexibility, let users add custom code that acts as an action (procedure or constraint). This would be a more convenient way to specify custom code as opposed to a script/plug-in which requires additional boilerplate such as registration.

While interactively adding an action should be simple enough, it fails in case we need to specify conditions, set variables as arguments, etc.

While I don't see this to be particularly difficult to implement, executing arbitrary code written in Python can pose severe security risks.