I'm writing a script to import cameras from a folder and I found the naming in the file is not the same as if I import the cameras from the UI. Using this code
for photo in image_list:
if ("tif" or "tiff") in photo.lower():
photo_list.append(path_photos + "\\" + photo)
print ("photo_list - " + str(','.join(photo_list)))
chunk.addPhotos(photo_list)
I get camera labels of "Camera1, Camera2, Camera3,..." but if I import the same cameras using the UI I get "Camera1.tiff, Camera2.tiff, Camera3.tiff..."
This is causing a issue with alignment as I am importing the cameras to speed alignment but the label difference is causing it to fail.
Anyone know how to have the "addPhotos()" command keep the file extention?
I verified by printing out the list that the file extension are included in the list.