mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Refactor function for matching AOV into new file
This commit is contained in:
parent
c6cfdfbd3a
commit
c210d3914e
1 changed files with 17 additions and 0 deletions
17
openpype/pipeline/farm/patterning.py
Normal file
17
openpype/pipeline/farm/patterning.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
import re
|
||||
|
||||
def match_aov_pattern(self, app, render_file_name):
|
||||
"""Matching against a AOV pattern in the render files
|
||||
In order to match the AOV name
|
||||
we must compare against the render filename string
|
||||
that we are grabbing the render filename string
|
||||
from the collection that we have grabbed from exp_files.
|
||||
"""
|
||||
|
||||
if app in self.aov_filter.keys():
|
||||
for aov_pattern in self.aov_filter[app]:
|
||||
if re.match(aov_pattern, render_file_name):
|
||||
preview = True
|
||||
return preview
|
||||
Loading…
Add table
Add a link
Reference in a new issue