Gimp.Procedure.prototype.set_argument_sync

function set_argument_sync(arg_name: String, sync: Gimp.ArgumentSync): void {
    // Gjs wrapper for gimp_procedure_set_argument_sync()
}
  

When using Gimp.ProcedureConfig, Gimp.ProcedureConfig.prototype.begin_run and Gimp.ProcedureConfig.prototype.end_run, a Gimp.Procedure's arguments or auxiliary arguments can be automatically synced with a Gimp.Parasite of the Gimp.Image the procedure is running on.

In order to enable this, set sync to Gimp.ArgumentSync.parasite.

Currently, it is possible to sync a string argument of type GObject.ParamSpecString with an image parasite of the same name, for example the "gimp-comment" parasite in file save procedures.

Since 3.0

arg_name

the name of one of procedure's arguments or auxiliary arguments.

sync

how to sync the argument or auxiliary argument.