hound shut

This commit is contained in:
Kayla Man 2023-07-06 17:54:18 +08:00
parent 803236c9c5
commit e9c9be0b57
2 changed files with 2 additions and 3 deletions

View file

@ -3,7 +3,7 @@ from openpype.pipeline import OptionalPyblishPluginMixin
class CollectFrameDataFromAssetEntity(pyblish.api.InstancePlugin,
OptionalPyblishPluginMixin):
OptionalPyblishPluginMixin):
"""Collect Frame Range data From Asset Entity
"""

View file

@ -16,11 +16,10 @@ class CollectSequenceFrameData(pyblish.api.InstancePlugin):
def process(self, instance):
frame_data = self.get_frame_data_from_repre_sequence(instance)
for key, value in frame_data.items():
if key not in instance.data :
if key not in instance.data:
instance.data[key] = value
self.log.debug(f"Frame range data {key} has been collected ")
def get_frame_data_from_repre_sequence(self, instance):
repres = instance.data.get("representations")
if repres: