mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Fix udim support for e.g. uppercase <UDIM> tag
This commit is contained in:
parent
baa9598dd8
commit
38c8d2c8fe
1 changed files with 7 additions and 5 deletions
|
|
@ -109,16 +109,18 @@ def node_uses_image_sequence(node, node_path):
|
|||
"""
|
||||
|
||||
# useFrameExtension indicates an explicit image sequence
|
||||
# The following tokens imply a sequence
|
||||
patterns = ["<udim>", "<tile>", "<uvtile>",
|
||||
"u<u>_v<v>", "<frame0", "<f4>"]
|
||||
try:
|
||||
use_frame_extension = cmds.getAttr('%s.useFrameExtension' % node)
|
||||
except ValueError:
|
||||
use_frame_extension = False
|
||||
if use_frame_extension:
|
||||
return True
|
||||
|
||||
return (use_frame_extension or
|
||||
any(pattern in node_path for pattern in patterns))
|
||||
# The following tokens imply a sequence
|
||||
patterns = ["<udim>", "<tile>", "<uvtile>",
|
||||
"u<u>_v<v>", "<frame0", "<f4>"]
|
||||
node_path_lowered = node_path.lower()
|
||||
return any(pattern in node_path_lowered for pattern in patterns)
|
||||
|
||||
|
||||
def seq_to_glob(path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue