# Pattern Browsing question

**URL:** <https://forum.logik.tv/t/pattern-browsing-question/8898>\
**Category:** Flame Questions\
**Tags:** importing, pattern-browsing\
**Created:** [August 2, 2023, 1:38am UTC](https://forum.logik.tv/t/pattern-browsing-question/8898 "2023-08-02T01:38:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 1:38am UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/1 "2023-08-02T01:38:59Z")

</div>

Hi there,  
Does anyone know of a way to “customize” the {name} token in the pattern browsing options?  
what if renders have an extra scene version somewhere in the middle of the name? like ABC\_0010\_lgt\_v01\_BTY\_OBJECT.diffuse.1001.exr  
But the actual version of the publish is in the parent folder

v01  
----- ABC\_0010\_lgt\_v05\_BTY\_OBJECT.diffuse.1001.exr  
v02  
------ ABC\_0010\_lgt\_v12\_BTY\_OBJECT.diffuse.1001.exr

so the {version} token will be for the folder (v01, v02), but then the {name} token doesn’t work since the lgt version changes in the filename itself, breaking name consistency.  
So I need to ignore part of the name, like {subname pre}_{foo}_{subname post}

Is there a way to define custom tokens for pattern browsing, wild cards in names, anything?

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 1:45am UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/2 "2023-08-02T01:45:21Z")

</div>

The following gets close but is too greedy:  
v{version}/{pre}_v{ver}_{name}.{frame}.{extension}  
It will skip the BTY\_ part of the name and result to OBJECT.diffuse  
And obviously we lost the shot name (ABC\_0010)

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 2, 2023, 1:58pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/3 "2023-08-02T13:58:18Z")

</div>

Good Morning!

What better than a Pattern Browsing puzzle with the first coffee 😉

I made it work with the following pattern:  
v{version}/{name}\_{data}\_v{UID}.{AOV}.{frame}.{extension}

This will show you a multi version clip named ABC\_010 which I guess is what you are looking for. The {data}, {UID} and {AOV} become wild card custom tokens and can be seen in Clip Node / Extended / Metadata/Video Track 1 / Tokens if you need to see them for reference.

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 6:18pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/4 "2023-08-02T18:18:36Z")

</div>

Good Morning!  
Merci Stephane !  
Not sure what I’m doing wrong but this doesn’t work for me.  
It sees the ‘\_lgt\_v##’ as a name change and shows both lgt versions as separate clips.

 ![Screen Shot 2023-08-02 at 10.55.05](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/c/c381a8359fd8e3f048701f2909718c4fcb902d6d.png)

 ![Screen Shot 2023-08-02 at 10.56.03](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/9/92c01e6b2ea89e8b8773f76d977ee2bd9ede92e0.png)

Also, but that wasn’t part of my OP, it ignores the render that doesn’t have an AOV tag (the beauty pass itself)

Another coffee? 😉

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 2, 2023, 7:06pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/5 "2023-08-02T19:06:40Z")

</div>

Let me give it a try.

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 7:20pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/6 "2023-08-02T19:20:48Z")

</div>

Ideally it would show what’s in the next screengrab. This next screengrab is based on renders that have the ‘\_lgt\_v##’ at the end, but unfortunately that’s not an easy option for us.

 ![Screen Shot 2023-08-02 at 12.17.31](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/9/9520e9b1e46a84351afb5bdf1a8f8d4d7a75703b.png)

so basically ignoring the ‘\_lgt\_v##’ that’s in the middle in the original naming pattern (our real life example)

note:  
"_lgt_ is consistent in all renders, only the v## isn’t

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 2, 2023, 7:22pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/7 "2023-08-02T19:22:31Z")

</div>

Here we go:  
-You should add a .beauty to you first pass if possible.  
-This pattern will create an Multi-Channel clip with AOV versions:  
v{version}/{name}\_{data}\_v{UID}.{track}.{frame}.{extension}

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 7:30pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/8 "2023-08-02T19:30:00Z")

</div>

Very nice! It does exactly what you described! Thanks a bunch!

Do you think it’s also possible to keep the part of the name? “PROP” in this example.

And is there a way to make this work not resulting in a Multi-Channel clip?

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 2, 2023, 7:34pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/9 "2023-08-02T19:34:27Z")

</div>

Very good!

PROP cannot be part of the name since it is too far from the part of the basename used for name token.

I am trying to get single channel / multi-version with your example. I remember in the past being able to do that BUT you have floating data in the middle of the base name (the 05 / v012 part) that causes me to get to coffee machine 😉

i will provide a new pattern if I am able to get the right result.

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 7:45pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/10 "2023-08-02T19:45:30Z")

</div>

Thanks again!!!  
_PROP cannot be part of the name since it is too far from the part of the basename used for name token._ Yes, that seems to be the main “issue”, the fact that the {name} token can’t be ‘split’ in parts, like `{name part1}_{skip inconsistency}_{name part2}.{track}.`

Better than no indication of the layer name, I was able to prepend the layer part (PROP) to the track name using this (‘\_’ instead of ‘.’):  
`v{version}/{name}_{data}_v{UID}_{track}.{frame}.{extension}`

![Screen Shot 2023-08-02 at 12.44.24](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/d/dff62fd2bb33aa4a4ed0660aae7a626ce9824145.png)

Still multichannel though

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 2, 2023, 8:35pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/11 "2023-08-02T20:35:07Z")

</div>

The `{track}` token takes care of creating the multi-channel so this is why you get what you get. We do not have the flexibility to build the name from part of the basename since that could add time to browsing / aggregation but I guess if you control the rendering pipeline then moving it up like you have done might be a better option. I am not getting single channel / multi-versions with my various iterations so is this a big issue to use the Multi-Channel clip? Another option (which I did not tried yet) would be to create a folder structure per AOV and that could work if I am not mistaken (i.e. I played with all these variable many moon ago and wise people tend to forget stuff from the past 😉

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 8:45pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/12 "2023-08-02T20:45:02Z")

</div>

Thanks for your time and solutions, Stephane.  
We do prefer the flowgraphs’ clarity of using non multichannel in general, but we might be able to script something for automatic (or semi-auto) CG back to beauty snippets (using multichannel clips).  
Is this worth a couple feature requests?

1. ability to customize tokens definitions (like the expressions file for defining functions -ish)
2. {name} token split-able into something like:  
`{name part1}_{skip inconsistency}_{name part2}` …

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 2, 2023, 9:05pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/13 "2023-08-02T21:05:43Z")

</div>

I agree with you and I think we can make my proposal work in a single channel / multi-versions workflow not using Multi-Channel clips BUT using a Multi-channel pattern browsing! Follow me:  
-using the pattern with `{track}`, browse the content from Batch / Import Node and when in MediaHub, double-click on the Multi icon to reveal all AOV then select them all.  
-These single channel clips will allow you to get AOV based versions.  
-Is this what you were looking for?

There is always a value of filling Flame Feedback!

Please log them and we will see what could be possible.

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 10:02pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/14 "2023-08-02T22:02:14Z")

</div>

> [@Slabrie](#):
>
> double-click on the Multi icon to reveal all AOV then select them all

It does what you said and is interesting for sure. Although it splits the rgb and alpha so that doubles the amount of clips/nodes for a CG back to beauty snippet in the flowgraph. Might be an alternative if we script deleting all extra alphas though.

I’ll log the requests in, thanks.

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 10:26pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/15 "2023-08-02T22:26:31Z")

</div>

General improvement feature request:  
FI-03075

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 2, 2023, 11:46pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/16 "2023-08-02T23:46:20Z")

</div>

I added a comment to the request:  
3) Ability to use regular expressions to define patterns

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 3, 2023, 2:21pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/17 "2023-08-03T14:21:35Z")

</div>

Thanks for filling the improvements!

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 3, 2023, 2:54pm UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/18 "2023-08-03T14:54:45Z")

</div>

To go back to non multi-channel content for your multi-version AOV, if you have full control on naming convention, you could try to move the AOV closer to shot name so Pattern Browsing could generate clip name token with shotname + AOV aggregation:

v01/  
GRP\_0030.beauty\_lgt\_v05\_BTY\_PROP  
GRP\_0030.diffuse\_lgt\_v05\_BTY\_PROP  
GRP\_0030.specular\_lgt\_v05\_BTY\_PROP

v02/  
GRP\_0030.beauty\_lgt\_v12\_BTY\_PROP  
GRP\_0030.diffuse\_lgt\_v12\_BTY\_PROP  
GRP\_0030.specular\_lgt\_v12\_BTY\_PROP

-use the following pattern: v{version}/{name}\_{data}_v{UID}_{data2}.{frame}.{extension}

This will create multi versions AOV named GRP\_0030.beauty, GRP\_0030.specular, etc which I feel is what you are looking for.

---

<div class="post-metadata">

**Author:** ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)\
**Post date:** [August 4, 2023, 2:27am UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/19 "2023-08-04T02:27:29Z")

</div>

Apparently there’s a limit to easy naming stuff with maya/vray … but it could be considered.

> [@Slabrie](#):
>
> This will create multi versions AOV named GRP\_0030.beauty, GRP\_0030.specular, etc which I feel is what you are looking for.

We also need the render layer info (like CAR\_LEFT, CAR\_RIGHT, BTY\_PROP, UTIL\_FOO …)

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [August 4, 2023, 10:02am UTC](https://forum.logik.tv/t/pattern-browsing-question/8898/20 "2023-08-04T10:02:14Z")

</div>

“We also need the render layer info (like CAR\_LEFT, CAR\_RIGHT, BTY\_PROP, UTIL\_FOO …)”

You have options here:

if your do not need to see this data in the name, you could view the custom token in the Clip Node / Extended / Metadata tab (Token).

If you need them in the name, you will need to move it up in the basename. Since this data should not change between versions, I would modify filename from

GRP\_0030.beauty\_lgt\_v05\_BTY\_PROP.1001.exr

to

GRP\_0030\_BTY\_PROP.beauty\_lgt\_v05.1001.exr

with this pattern:  
v{version}/{name}\_{data}\*v{UID}.{frame}.{extension}

name of the clip would be:

GRP\_0030\_BTY\_PROP.beauty

BTW, I will be away for two weeks starting Today so if you do not see my following answers it is very normal 😉

[Next page](https://forum.logik.tv/t/pattern-browsing-question/8898.md?page=2)
