mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
make sure directory used during switching asset when users switch from mov to image sequences
This commit is contained in:
parent
6df1a97446
commit
73b20d80f1
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import re
|
||||
|
||||
import os
|
||||
from ayon_core.pipeline import get_representation_path
|
||||
from ayon_aftereffects import api
|
||||
from ayon_aftereffects.api.lib import get_unique_layer_name
|
||||
|
|
@ -91,6 +91,9 @@ class FileLoader(api.AfterEffectsLoader):
|
|||
else: # switching version - keep same name
|
||||
layer_name = container["namespace"]
|
||||
path = get_representation_path(repre_entity)
|
||||
|
||||
if len(repre_entity["files"]) > 1:
|
||||
path = os.path.dirname(path)
|
||||
# with aftereffects.maintained_selection(): # TODO
|
||||
stub.replace_item(layer.id, path, stub.LOADED_ICON + layer_name)
|
||||
stub.imprint(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue