Author Topic: Folder Names  (Read 6175 times)

Offline flyingpoint

  • Newcomer
  • *
  • Posts: 17
    • View Profile
Folder Names
« on: September 18, 2024, 01:55:42 PM »
I suspect I know the answer, but I thought I'd give it a shot.

I've been trying to get my head around sorting on ingest by folder.  I typically shoot events with two or three cameras.  Is there a way to read just the folder number, e.g. "100" instead of the whole "100FPR9B?"  Almost like "filebas?"  The other option would be for me to delete my camera names (FPR9A, FPR9B and FPR8A), but I'd like to avoid that.

Thanks.

Offline ahoward

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 971
    • View Profile
Re: Folder Names
« Reply #1 on: September 18, 2024, 02:30:22 PM »
Is it always 3 digits? You should just be able to use {folder:0,3} to get the first 3 characters of an image's folder.

See for more details: https://camerabits.freshdesk.com/support/solutions/articles/48001077381-variable-substring-extraction

Offline flyingpoint

  • Newcomer
  • *
  • Posts: 17
    • View Profile
Re: Folder Names
« Reply #2 on: September 18, 2024, 02:43:59 PM »
I looked all over for that information!

THANKS!  I'll give it a shot tonight, but I think that's exactly what I'm looking for...


Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: Folder Names
« Reply #3 on: September 18, 2024, 03:14:49 PM »
Isn't {foldernum} variable for that exact thing?

Offline ahoward

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 971
    • View Profile
Re: Folder Names
« Reply #4 on: September 18, 2024, 03:42:08 PM »
Isn't {foldernum} variable for that exact thing?

That also appears to work.

Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: Folder Names
« Reply #5 on: September 23, 2024, 02:38:40 PM »
What do you mean “appears” :)
Don’t you supposed to know what variables in your app do? :)

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25019
    • View Profile
    • Camera Bits, Inc.
Re: Folder Names
« Reply #6 on: September 23, 2024, 02:56:04 PM »
Isn't {foldernum} variable for that exact thing?

Sure, but it's also useful to learn Variables Substring Extraction.  Either way works.

-Kirk

Offline ahoward

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 971
    • View Profile
Re: Folder Names
« Reply #7 on: September 24, 2024, 09:03:43 AM »
What do you mean “appears” :)
Don’t you supposed to know what variables in your app do? :)
I am supposed to provide solutions for the people who ask for them, which is what I did. Sometimes there are better solutions, because I am not perfect and don't know every single Variable off the top of my head. I provided the first solution that came to my mind and the requester was happy with the solution provided.

Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: Folder Names
« Reply #8 on: September 25, 2024, 12:32:49 AM »

Sure, but it's also useful to learn Variables Substring Extraction.  Either way works.

-Kirk

True! Very useful