Copy link to clipboard
Copied
I could have sworn there was a way, but I sure can't figure it out right now - anybody know if or how?
PS - I thought at first catalog:setPropertyForPlugin would do it, but it seems to just set some invisible property, not the viewable, filterable, custom metadata kind.
Thanks,
Rob
Copy link to clipboard
Copied
Have you referenced the field value correctly. That method should work, providing you reference the plug-in correctly, that the metadata definition is present, and you have a way of seeing the results (a panel, in filter panel or smart collections)
Copy link to clipboard
Copied
To build on John's reply, double-check that the metadata definition declares the field browsable and searchable, e.g.
metadataFieldsForPhotos = {
{id = 'type',
title = "Type",
dataType = 'string',
browsable = true,
searchable = true},
Copy link to clipboard
Copied
Oops, it was late - I was tired... - needs to be photo:setPropertyForPlugin, not catalog:setPropertyForPlugin. (Note: both those methods exist, they just do different things...)
Duh...
Thanks guyes,
Rob
Copy link to clipboard
Copied
Yeah, there are many advantages to a dynamic language like Lua, but a big disadvantage is that pretty much any string of garbage
can be executed, which makes PUI (programming under the influence) dangerous 😞
Copy link to clipboard
Copied
photo:setPropertyForPlugin, not catalog:setPropertyForPlugin!
-R