Skip to main content
johnrellis
Legend
November 25, 2022
Open for Voting

P: SDK: Provide photo:updateAISettings () to update the AI settings of a photo

  • November 25, 2022
  • 返信数 3.
  • 1549 ビュー

There's currently no way for a plugin to update the AI settings for a photo. For example, users of my Copy Settings plugin must do a manual Update AI Settings after copying masks.  If there were photo:updateAISettings(), then Copy Settings could save users that manual step.

返信数 3

Known Participant
May 22, 2024

Thats great!

 

one thing i noticed when using it:

When i do 

photo:applyDevelopSettings(settings)
photo:updateAISettings()
within one catalog:withWriteAccessDo block, it does not seem to know the new settings already and therefore does not calculate the new masks.
If i split them into two catalog:withWriteAccessDo, first applying the settings and then updating ai settings, it seems to work. Not sure if thats the intended behaviour, or if it should rather take the new settings into account directly?
 
Also, if i loop over multiple photos and trigger updateAISettings for all of them, there will be one dialog popping up for every photo, one after the other, always just processing 1 photo. Maybe some way to batch this (since the dialog supports running for multiple photos) would be nice.

Also, if i can be of help in testing new implementations upfront, before the release, let me know. I'd be happy to beta test.
john beardsworth
Community Expert
Community Expert
May 21, 2024

photo:updateAISettings() has been added in the 13.3 release.

Known Participant
January 5, 2024

In order to make AI masks truely usable from the SDK, some way to trigger the Update AI Settings is essential. Doing this as proposed by @johnrellis would be perfect. Otherwise at least being able to trigger the batch Dialog to update the AI Setttings from the Application or Catalog with a set of photos would also be a option.