Image sequence "stacker": image.[1-500].iff

Hello all,

I often work with large image sequences. I already know how to use wild card selections but I would really prefer if file sequences were recognized by Dopus and, for example, a file sequence like:

filename.1.ext
filename.2.ext
...
filename.n.ext

was displayed as one item instead:

filename.[1-n].ext

This would make a world of difference in my workflow.
I would easily copy, move, delete (and ideally
rename) sequences without having to select all the files each time and scroll through pages of files to find the start and end frames (some of my folders contain several sequences and thousands of images).

This compact way of listing would be great but ... how ?

Any help would be more than welcome.
Thanks in advance.

I don't think that's possible.

You could create a button/hotkey which lets you click on one of the files and then click the button/hotkey to automatically select all the others. That would save you from all the scrolling.

If it was me I would put the files into folders, one for each sequence. Then you can work on them as a group (including copy, move, delete and rename operations) easily.

Hi Leo,

Thanks for your reply.
Would it be tricky to write it as a plugin or is it intrinsically a problem with how Dopus only wants to see one item per file ?

A plugin could change the way files/folders are displayed, collapsing each range into a single "file", but you'd then have problems passing the real list of files to anything else.

So you'd get the ability to copy/move/delete/rename things as a block but not much else would work (at least not without a lot of VBScript glue around every command you wanted to run on the files). e.g. Rotating or resizing all the images or passing them to Photoshop would become complicated at least...

Putting the ranges into folders would give similar results with fewer limitations, so I don't think a plugin would improve things.

Nice and clear. Thanks for all the infos !

Hey Leo I also am looking for a stacking feature for Opus. Basically a folder with different sequences can be easily seen at a glance by collapsing them into their own range groups. I tried creating a script button that would just automatically take the first image of a sequence and label it and hide the others but I cant get it to work.

A Select command with a textual filter might already do the job. This will hide all files whose index is not 1:

Select PATTERN=*.* HIDESEL FILTERDEF =RegEx(Stem(fullpath), ".*\.(\d+)", "\1")!=1

This list

will become

Alternatively, you could use the Evaluator to group files by name/sequence.

Thanks for showing a possible workaround! I added some things to make it also work with an underscore, period, dash, or space prefix to the number. I am struggling to get it to work however with a suffix of 0001 instead of just 1.

Select PATTERN=*.* HIDESEL FILTERDEF=RegEx(Stem(fullpath), ".*[-_. ]0*1$", "\1")!="0001"

FILTERDEF must be followed by a space and the regex is missing a capture group.

I figured out the space awhile back but have no idea how to get the other part to work. I only know python so I am kind of just taping things together as I can.

Try

Select PATTERN=*.* HIDESEL FILTERDEF =RegEx(Stem(fullpath), ".*[-_. ](0*1)$", "\1")!="0001"

My guy you are a genius that worked! I am sorry to bother you further but is it possible to also make this more dynamic to also work with other sequence numbers such as "1", "01", "001" as well? When I am working with image sequences those will change based on how long the sequence ends up being.

I'd say yes:

Select PATTERN=*.* HIDESEL FILTERDEF =RegEx(Stem(fullpath), ".*[-_. ]0*(1)$", "\1")!="1"

Brilliant! Works beautifully. Since I have it on a toolbar button I just need to figure out a way to make it toggleable to have it unhide everything when i click it again. I feel like that would be faster than what I am currently doing by going all the way down to the "hidden" indicator and clicking that and then having to click it again to get off the "everything" indicator afterwards. It also does a funny thing where if the first item in the sequence is already selected and you hide everything it takes it with everything else. Not sure if those things are possible to fix or do but the core functionality is there! Thank you again!

In that case, I'd use a Quick Filter:

Set QUICKFILTERFLAGS=evalon,regexpoff,flatviewoff,ignorediacriticsoff,anywordoff,partialoff QUICKFILTER="RegEx(Stem(name), "".*[-_. ]0*(1)$"", ""\1"")==""1"""
1 Like

That also solved the selection issue as well. You good sir have been a huge help. Thank you. I have been stuck on this one for the last two days.

A Quick Filter will react to incoming files automatically whereas Select needs to be rerun. Nice bonus :slight_smile:

1 Like