Hi Jake and Stephan,
Thanks for the code snippet, Jake - it works when I have exactly two photos per one pint. But if I have zero to three or more photos, I get the same error that Stephan gets = "IndexError: list index out of range"... How can I modify the code to ignore any points that don't have any photos or only have one photo? I'm aware that I'd need to add a third Image column to hold additional photos, but what else am I missing... The error appears at the line " row[1] = path + os.sep + dict[key][1]". Thanks much!
...
dict = {}
with arcpy.da.SearchCursor(fc, ["GlobalID"]) as cursor:
for row in cursor:
OID = row[0]
dict.setdefault(OID, [])
with arcpy.da.SearchCursor(table, ["ATT_NAME"], "REL_GLOBALID = '" + str(OID) + "'") as cursor2:
for row2 in cursor2:
dict[row[0]].append(row2[0])
del cursor, cursor2
for key in dict:
with arcpy.da.UpdateCursor(fc, ["Image1", "Image2"], "GlobalID = '" + str(key) + "'") as cursor:
for row in cursor:
row[0] = path + os.sep + dict[key][0]
row[1] = path + os.sep + dict[key][1]
cursor.updateRow(row)
del cursor