Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def attribute_changed(self, attr, role):
if attr == self.scope:
if self.scope.value() in ["Current Media", "Current Frame"]:
self.user_name.set_value(
self.connection.api.session.viewed_container.playhead.on_screen_media.name
self.current_playhead().on_screen_media.name
)
elif self.scope.value() == "Current Playlist / Timeline":
self.user_name.set_value(
Expand Down Expand Up @@ -232,7 +232,7 @@ def do_export(self, scope, export_type, user_name, output_folder, file_type, res
elif scope == "Current Media":

self.export_media_annotations(
self.connection.api.session.viewed_container.playhead.on_screen_media
self.current_playhead().on_screen_media
)

elif scope == "Current Playlist / Timeline":
Expand All @@ -254,7 +254,7 @@ def do_export(self, scope, export_type, user_name, output_folder, file_type, res
gp_file_path = self.__output_folder + "/greasePencil.xml"
self.make_greaspencil_xml_file(
gp_file_path,
self.connection.api.session.viewed_container.playhead.on_screen_media.media_source().rate.fps()
self.current_playhead().on_screen_media.media_source().rate.fps()
)
# now we zip the folder
final_name = shutil.make_archive(self.__output_folder + "/" + self.user_name.value(), 'zip', __tmp_folder)
Expand Down Expand Up @@ -314,8 +314,8 @@ def export_frame(self, idx, frame, duration, bookmark, media):

def export_bookmark_on_current_frame(self):

m = self.connection.api.session.viewed_container.playhead.on_screen_media
current_frame = self.connection.api.session.viewed_container.playhead.attributes['Media Logical Frame'].value()
m = self.current_playhead().on_screen_media
current_frame = self.current_playhead().attributes['Media Logical Frame'].value()
bookmarks = m.ordered_bookmarks()
bookmark = None
for bm in bookmarks:
Expand Down
Loading