mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Shot naming matching
This commit is contained in:
parent
9af6264d1e
commit
b2ce0ac07a
1 changed files with 10 additions and 10 deletions
|
|
@ -233,16 +233,7 @@ def sync_zou():
|
|||
new_entity = gazu.asset.new_asset(
|
||||
zou_project, all_asset_types[0], doc["name"]
|
||||
)
|
||||
|
||||
elif match.group(1): # Episode
|
||||
new_entity = gazu.shot.new_episode(zou_project, doc["name"])
|
||||
|
||||
elif match.group(2): # Sequence
|
||||
parent_doc = asset_docs[visual_parent_id]
|
||||
new_entity = gazu.shot.new_sequence(
|
||||
zou_project, doc["name"], episode=parent_doc["data"]["zou_id"]
|
||||
)
|
||||
|
||||
# Match case in shot<sequence<episode order to support composed names like 'ep01_sq01_sh01'
|
||||
elif match.group(3): # Shot
|
||||
# Match and check parent doc
|
||||
parent_doc = asset_docs[visual_parent_id]
|
||||
|
|
@ -292,6 +283,15 @@ def sync_zou():
|
|||
nb_frames=doc["data"]["frameEnd"] - doc["data"]["frameStart"],
|
||||
)
|
||||
|
||||
elif match.group(2): # Sequence
|
||||
parent_doc = asset_docs[visual_parent_id]
|
||||
new_entity = gazu.shot.new_sequence(
|
||||
zou_project, doc["name"], episode=parent_doc["data"]["zou_id"]
|
||||
)
|
||||
|
||||
elif match.group(1): # Episode
|
||||
new_entity = gazu.shot.new_episode(zou_project, doc["name"])
|
||||
|
||||
# Update doc with zou id
|
||||
doc["data"].update(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue