Forum

Author Topic: Get unaligned image names  (Read 1561 times)

Natsumi

  • Newbie
  • *
  • Posts: 12
    • View Profile
Get unaligned image names
« on: August 20, 2021, 08:43:42 AM »
Hello everyone!

I am in great trouble.

I want to get the unaligned image names.
I can get the number of images, but I can't get the image name.
Is it possible with the use of ”chunk.cameras”?

Thank you in advance.

Paulo

  • Hero Member
  • *****
  • Posts: 763
    • View Profile
Re: Get unaligned image names
« Reply #1 on: August 20, 2021, 09:04:20 AM »
Natsumi,

yes you could use this snippet to select and print labels for each unaligned image (means no camera.transform):
Code: [Select]
for camera in [camera for camera in chunk.cameras if not camera.transform]:
    camera.selected = True
    print(camera.label)

see attachment
Best Regards,

Paul Pelletier

Natsumi

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Get unaligned image names
« Reply #2 on: August 20, 2021, 10:31:41 AM »
Hello Paulo,

Thank you for your help this time as well.
It's working very well.
Thanks so much.

Natsumi