Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mapid key #803

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions python/tank/templatekey.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ class SequenceKey(IntegerKey):
# special keywork used when format is specified directly in value
FRAMESPEC_FORMAT_INDICATOR = "FORMAT:"
# valid format strings that can be used with this Key type
VALID_FORMAT_STRINGS = ["%d", "#", "@", "$F", "<UDIM>", "$UDIM"]
VALID_FORMAT_STRINGS = ["%d", "#", "@", "$F", "<UDIM>", "$UDIM", "_MAPID_"]
# flame sequence pattern regex ('[1234-5434]')
FLAME_PATTERN_REGEX = r"^\[[0-9]+-[0-9]+\]$"

Expand Down Expand Up @@ -1216,7 +1216,7 @@ def _resolve_frame_spec(self, format_string, format_spec):
frame_spec = "@" * places
elif format_string == "$F":
frame_spec = "$F%d" % places
elif format_string in ("<UDIM>", "$UDIM"):
elif format_string in ("<UDIM>", "$UDIM", "_MAPID_"):
# UDIM's aren't padded!
frame_spec = format_string
else:
Expand All @@ -1231,7 +1231,7 @@ def _resolve_frame_spec(self, format_string, format_spec):
frame_spec = "@"
elif format_string == "$F":
frame_spec = "$F"
elif format_string in ("<UDIM>", "$UDIM"):
elif format_string in ("<UDIM>", "$UDIM", "_MAPID_"):
# UDIM's aren't padded!
frame_spec = format_string
else:
Expand Down