Author Topic: Set length of a variable  (Read 1053 times)

Offline Sturman

  • Newcomer
  • *
  • Posts: 12
    • View Profile
Set length of a variable
« on: December 05, 2024, 10:02:03 PM »
Hi,
I am using this sequence to rename the file of a series of photos;
Day02 Japan 2024- {object} - {seqn}
The Object is the description I have given to each photo but some descriptions are quite long, which makes the new file name unwieldy. Is there a way to set the number of digits in the {object} so that the description is only, say 10 words long?
Thanks in advance for any assistance.
Cheers, Malcolm

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25052
    • View Profile
    • Camera Bits, Inc.
Re: Set length of a variable
« Reply #1 on: December 06, 2024, 09:56:55 AM »
Malcom,

There is currently no way to limit the expansion of a variable by word count.  You can extract some number of letters, but I don't think that will give you the results you want.  To read more about what you can do with variables, please see:

https://docs.camerabits.com/support/solutions/articles/48001077381-variable-substring-extraction

-Kirk

Offline Sturman

  • Newcomer
  • *
  • Posts: 12
    • View Profile
Re: Set length of a variable
« Reply #2 on: December 11, 2024, 08:36:18 PM »
Thanks Kirk,

I set up my Stream Deck to copy from the Object field down to the Headline field where I was then able to modify to the size I wanted. Then used the variable to copy this field into the new file name.

Cheers, Malcolm