mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
modified part of flame to follow new 'asset' naming
This commit is contained in:
parent
5ada46f2a0
commit
51bebd0f1e
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import pyblish.api
|
import pyblish.api
|
||||||
|
|
||||||
|
from openpype.client import get_asset_name_identifier
|
||||||
import openpype.hosts.flame.api as opfapi
|
import openpype.hosts.flame.api as opfapi
|
||||||
from openpype.hosts.flame.otio import flame_export
|
from openpype.hosts.flame.otio import flame_export
|
||||||
from openpype.pipeline.create import get_subset_name
|
from openpype.pipeline.create import get_subset_name
|
||||||
|
|
@ -33,13 +34,15 @@ class CollecTimelineOTIO(pyblish.api.ContextPlugin):
|
||||||
project_settings=context.data["project_settings"]
|
project_settings=context.data["project_settings"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
asset_name = get_asset_name_identifier(asset_doc)
|
||||||
|
|
||||||
# adding otio timeline to context
|
# adding otio timeline to context
|
||||||
with opfapi.maintained_segment_selection(sequence) as selected_seg:
|
with opfapi.maintained_segment_selection(sequence) as selected_seg:
|
||||||
otio_timeline = flame_export.create_otio_timeline(sequence)
|
otio_timeline = flame_export.create_otio_timeline(sequence)
|
||||||
|
|
||||||
instance_data = {
|
instance_data = {
|
||||||
"name": subset_name,
|
"name": subset_name,
|
||||||
"asset": asset_doc["name"],
|
"asset": asset_name,
|
||||||
"subset": subset_name,
|
"subset": subset_name,
|
||||||
"family": "workfile",
|
"family": "workfile",
|
||||||
"families": []
|
"families": []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue