Hey
Does anyone know of a way of converting segment markers to be regular markers? I’ve received a sequence from offline and every marker is a segment marker, my issue is these are on a blank layer so when I create a new bfx on a different layer they’re then gone when I come out. Usually I wouldn’t care but these are all the notes of what they want doing!
Hi Rob,
There are no conversion tools in Flame to my knowledge. This is something you could log on the Flame Feedback Portal.
However, it might be worth looking at the conform file and see if it can be edited to add sequence markers instead of segment markers. If it’s an XML it might be easy. If it’s an AAF it might be more difficult.
Hope this helps.
Grant
Thank you Grant. It’s an aaf unfortunately.
I’ve just found if I select the empty layer with all the segment markers and then press the colour source button it thankfully doesn’t replace those markers but I guess those markers are now associated to media so going into a bfx doesn’t remove them now.
Hey Rob,
select the desired segments that contain markers, open the python console and paste this:
import flame
desk = flame.project.current_project.current_workspace.desktop
for reel_group in desk.reel_groups:
for reel in reel_group.reels:
for sequence in reel.sequences:
if sequence.selected.get_value():
for version in sequence.versions:
for track in version.tracks:
for segment in track.segments:
for marker in segment.markers:
seq_marker = sequence.create_marker(marker.location.get_value())
seq_marker.name = marker.name.get_value()
seq_marker.comment = marker.comment.get_value()
seq_marker.colour = marker.colour.get_value()
seq_marker.duration = marker.duration.get_value()
flame.delete(marker)
Please note, that this is very basic and will not check if there is more than one marker at the same time.
Warning: Python actions are not (yet) undoable, so make a copy of your sequence before you start!
Cheers,
Claus
If you want to have it as context menu option for segments in the timeline paste the following into a seg_markers_to_markers.py file in /opt/Autodesk/shared/python ( the script check for existing markers, so left over markers means conflicts).
def get_timeline_custom_ui_actions():
def scope_markers(selection):
import flame
for item in selection:
if isinstance(item, (flame.PySegment)):
if item.markers:
return True
return False
def has_marker(clip, location):
import flame
for marker in clip.markers:
if marker.location.get_value() == location:
return True
return False
def convert_markers(selection):
import flame
for item in selection:
if isinstance(item, (flame.PySegment)):
clip = item.parent.parent.parent
markers = item.markers
for marker in markers:
location = marker.location.get_value()
if not has_marker(clip, location):
new_marker = clip.create_marker(location)
new_marker.name = marker.name
new_marker.comment = marker.comment
new_marker.duration = marker.duration
new_marker.colour = marker.colour
flame.delete(marker)
return [
{
"name": "PYTHON: MARKERS",
"actions": [
{
"name": "Convert Segment Markers to Markers",
"isVisible": scope_markers,
"execute": convert_markers
}
]
}
]
Welcome @PhilippeJ !!!
This is absolutely amazing, thank you very much guys, this is beyond what I was expecting. This forum is amazing