Skip to main content
C.Cella
Legend
June 18, 2024
Answered

Get "Metadata Status" via the SDK

  • June 18, 2024
  • 1 reply
  • 271 views

A small question for the experts.

 

Is it possible to get "Metadata Status" via the SDK?

 

Metadata Status is available as tagset but I can't figure out how to get it.

.

This topic has been closed for replies.
Correct answer johnrellis

The only way, which the Any Filter plugin uses, is to use catalog:findPhotos(), which uses the same mechanism internally as smart collections:

catalog:findPhotos {searchDesc = {
    criteria = "metadataStatus", 
    operation = "==", 
    value = "changedOnDisk"}}

 

It's very fast, even on large catalogs.

1 reply

johnrellis
johnrellisCorrect answer
Legend
June 19, 2024

The only way, which the Any Filter plugin uses, is to use catalog:findPhotos(), which uses the same mechanism internally as smart collections:

catalog:findPhotos {searchDesc = {
    criteria = "metadataStatus", 
    operation = "==", 
    value = "changedOnDisk"}}

 

It's very fast, even on large catalogs.

C.Cella
C.CellaAuthor
Legend
June 19, 2024

Thanks @johnrellis