Lonely People

From ptWiki

Jump to: navigation, search

By Khodadad

This script is used to create categories for people who are alone in a photo.
If you have, for example:

People
+- Jones
   +- Margaret
   +- Thomas
+- Friends
   +- Smith
      +- John
      +- Susan
   +- Turner
      +- Sarah
      +- Tony


And you execute the script when "People" is the active Category and then choose John, it creates a category:
Lonely People.Friends.Smith.John
with a formula like:
People.Friends.Smith.John NOT (People.Jones OR People.Friends.Turner OR Friends.Smith.Susan)



so that only John appears.

Initially, I created a script that duplicated all the People tree, but as there were a lot of categories with complex formulas, IMatch couldn't handle it, so now you need to choose for which categories you want to create the alone categories. A database backup before trying is recommended, as depending upon your choice, you can collapse IMatch.

For a different approach, see <a href="http://ptforum.photoolsweb.com/showflat.php?Number=6729#6729" target="_blank">here</a> and Grouped People


Khodadad

* Script file: Download this script
* See the Script downloading and installation instructions for generic information about using scripts downloaded from the IMatch Wiki.


Personal tools