mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
flame: add comment attributes to instance data
This commit is contained in:
parent
34b44bec63
commit
bd57a0fd56
1 changed files with 9 additions and 4 deletions
|
|
@ -106,6 +106,9 @@ class CollectTimelineInstances(pyblish.api.ContextPlugin):
|
|||
# add resolution
|
||||
self._get_resolution_to_data(inst_data, context)
|
||||
|
||||
# add comment attributes if any
|
||||
inst_data.update(comment_attributes)
|
||||
|
||||
# create instance
|
||||
instance = context.create_instance(**inst_data)
|
||||
|
||||
|
|
@ -163,11 +166,13 @@ class CollectTimelineInstances(pyblish.api.ContextPlugin):
|
|||
# 1920x1080x1.5
|
||||
aspect = res_goup[2] if len(res_goup) > 2 else 1
|
||||
|
||||
attributes["resolution"] = {
|
||||
"width": int(res_goup[0]),
|
||||
"height": int(res_goup[1]),
|
||||
attributes.update({
|
||||
"resolutionWidth": int(res_goup[0]),
|
||||
"resolutionHeight": int(res_goup[1]),
|
||||
"pixelAspect": float(aspect)
|
||||
}
|
||||
})
|
||||
|
||||
return attributes
|
||||
|
||||
def _get_head_tail(self, clip_data, first_frame):
|
||||
# calculate head and tail with forward compatibility
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue