Bases: Extractor
Clean utf characters which are not working in DL
Published compositions are marked with unicode icon which causes problems on specific render environments. Clean it first, sent to rendering, add it later back to avoid confusion.
Source code in client/ayon_aftereffects/plugins/publish/remove_publish_highlight.py
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 | class RemovePublishHighlight(publish.Extractor):
"""Clean utf characters which are not working in DL
Published compositions are marked with unicode icon which causes
problems on specific render environments. Clean it first, sent to
rendering, add it later back to avoid confusion.
"""
order = publish.Extractor.order - 0.49 # just before save
label = "Clean render comp"
hosts = ["aftereffects"]
families = ["render.farm"]
def process(self, instance):
stub = get_stub()
self.log.debug("instance::{}".format(instance.data))
item = instance.data
comp_name = item["comp_name"].replace(stub.PUBLISH_ICON, '')
stub.rename_item(item["comp_id"], comp_name)
instance.data["comp_name"] = comp_name
|