Tag 'Object' not defined warning message

Started by txastro, December 18, 2018, 10:53:24 PM

Previous topic - Next topic

txastro

I have several commands in a txt file.  I have used the file for several years.  I open a command command window, navigate to a folder, and copy/paste commands from the txt file to the command line.  I have used these commands on .CR2 from Canon XS and T6i.  After several months of not working with image files I went to rename some images in several directories.  I issued:

exiftool -d %Y%m%d_%Hh%Mm%Ss "-filename<${Object}_${ISO}_${CameraTemperature2}_${ExposureTime}s_${DateTimeOriginal}_${SeqNo}.%e" -r -ext cr2 .

and received the message

Warning: [minor] Tag 'Object' not defined - ./IC1805-T6i-DWB_1600_60s_2018-12-01-23-49-29_221.CR2
Warning: No writable tags set from ./IC1805-T6i-DWB_1600_60s_2018-12-01-23-49-29_221.CR2

This is supposed to keep text prior to the first "_" and after the last "_".  In between those it should write ISO, temp, exposure time, and the date time of the original.

The only thing that has happenned on the machine is several windows 10 updates, included two of the large creator updates?

I tried running the command line using versions 9.12, 10.94, and 11.21.

Anybody have an idea what I may be missing?

Thanks,
Xavier

StarGeek

#1
Quote from: txastro on December 18, 2018, 10:53:24 PM
This is supposed to keep text prior to the first "_" and after the last "_".  In between those it should write ISO, temp, exposure time, and the date time of the original.

But that's not what your command does.  It looks in the file for a tag named Object and a tag named SeqNo.  Object may exist as it is a tag in the XMP-prism group, but exiftool has no definition for SeqNo.  Unless these are user defined tags.

If you want to parse out the IC1805 and 221 out of your example filename, you'll have to use something like ${Filename;s/(^[^_]*)_.*/$1/} and ${Filename;s/.*_([^\.]*)\.[^\.]*$/$1/}.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

txastro

Thanks.  I see what you mean.  I guess I deleted part of the original file without realizing it.  Time to recreate it.