flame: improving work with presets

This commit is contained in:
Jakub Jezek 2022-04-14 08:55:30 +02:00
parent 9174e437a6
commit b086680289
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -169,27 +169,30 @@ class ExtractSubsetResources(openpype.api.Extractor):
# only keep visible layer where instance segment is child
self.hide_others(
exporting_clip, segment_name, s_track_name)
else:
exporting_clip = self.import_clip(clip_path)
# change in/out marks to timeline in/out
in_mark = clip_in
out_mark = clip_out
# change in/out marks to timeline in/out
in_mark = clip_in
out_mark = clip_out
# add xml tags modifications
modify_xml_data.update({
"exportHandles": True,
"nbHandles": handles,
"startFrame": frame_start
})
# add xml tags modifications
modify_xml_data.update({
"exportHandles": True,
"nbHandles": handles,
"startFrame": frame_start,
"namePattern": (
"<segment name>_<shot name>_{}.").format(
unique_name)
})
if parsed_comment_attrs:
# add any xml overrides collected form segment.comment
modify_xml_data.update(instance.data["xml_overrides"])
if parsed_comment_attrs:
# add any xml overrides collected form segment.comment
modify_xml_data.update(instance.data["xml_overrides"])
self.log.debug("__ modify_xml_data: {}".format(pformat(
modify_xml_data
)))
else:
exporting_clip = self.import_clip(clip_path)
export_kwargs = {}
# validate xml preset file is filled