Skip to main content
Art48
Participant
May 4, 2015
Question

Automatic image stacking in Bridge CC by filename.

  • May 4, 2015
  • 1 reply
  • 923 views

Hi,

I work at a CGI Studio and we use Bridge to acess and manage our library of textures etc.

Now textures usually consist of several seperate image files, let's say three (_DIFFUSE, _BUMP, _SPECULAR)

The filename of these three files, say they're from a wood material, would always be like "Wood-"+counter+"_DIFFUSE", example: "Wood-003_DIFFUSE.jpg", "Wood-003_BUMP.jpg" and "Wood-003_SPECULAR.jpg"

Now I manually grouped the three seperate image files together so I have a stack of three. The thing is we got hundreds of those 3-file-images.

Basically I need a way to automatically stack all the images which have the same beginning/pattern

Related: I did this once manually but for some reason Bridge messed up after a few days and got them all half-ass together and jumbled them around resulting in all files still being there but not properly stacked anymore...

Now I know my way around proprietary scripting languages and am familiar with stuff in general. Do I need to do scripting here or is there a better way to do so?

How would I start? Where? Has anyone links to a solution for this (I think common) problem?

This topic has been closed for replies.

1 reply

Art48
Art48Author
Participant
May 4, 2015

Hey, that's really nice!

I'll have to dig through the code to see what's happening there. As I didn't expect a complete solution I might have given some too abstract/incomplete information.

Since I cannot edit the original Post, I will try to make my point here:

I have a folder X in which there are n files. The files are not strictly image file formats, also others (*.max for example, shouldn't matter).

The files are named after the following sceme: [Prefix]-[3-padded Number]_[Suffix], Examples: Wood-003_DIFFUSE, Metal-112_SPECULAR

Basically I need to collect all n files (no matter the type) in that folder x which have the same Prefix+Number, so one group could be:

(Metal-010.max, Metal-010_DIFFUSE_v1.jpg, Metal-010_DIFFUSE_v2.jpg, Metal-010_SPECULAR.jpg, Metal-010_BUMP.jpg), and in that same folder x there would be other files like Wood-115_DIFFUSE.....

So I need an approach where the only criteria is basically the Prefix and the Number for grouping, which I think may make things easier?

Inspiring
May 4, 2015