Skip to content

Commit

Permalink
Merge pull request #603 from ynput/bugfix/AY-5045_AE-switching-asset-…
Browse files Browse the repository at this point in the history
…from-movmp4-to-image-sequence

After Effects: Bug fix of switching mov to image sequences not showing sequence
  • Loading branch information
moonyuet authored Jun 7, 2024
2 parents 2aa6206 + 52a597c commit 976bbaf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -91,6 +91,9 @@ def update(self, container, context):
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(
Expand Down

0 comments on commit 976bbaf

Please sign in to comment.