opentimelineio.adapters.svg

OTIO to SVG Adapter Points in calculations are y-up. Points in SVG are y-down.

class opentimelineio.adapters.svg.ClipData(src_start=0.0, src_end=0.0, avlbl_start=0.0, avlbl_end=0.0, avlbl_duration=0.0, trim_start=0.0, trim_duration=0.0, clip_id=0, transition_begin=None, transition_end=None)
class opentimelineio.adapters.svg.Color(r=0.0, g=0.0, b=0.0, a=255.0)
property a
property b
property g
property r
static random_color()
svg_color()
class opentimelineio.adapters.svg.Point(x, y)
svg_point_string()
class opentimelineio.adapters.svg.Rect(origin=<opentimelineio.adapters.svg.Point object>, width=0.0, height=0.0)
contract(distance)
height = 0.0
max_x()
max_y()
mid_x()
mid_y()
min_x()
min_y()
normalized()
origin = <opentimelineio.adapters.svg.Point object>
width = 0.0
class opentimelineio.adapters.svg.SVGWriter(image_width=2406.0, image_height=1054.0, image_margin=20.0, arrow_margin=10.0, arrow_label_margin=5.0, font_size=15.0, font_family='sans-serif')
draw_arrow(start_point, end_point, stroke_width, stroke_color=<opentimelineio.adapters.svg.Color object>)
draw_dashed_rect(rect, stroke_width=2.0, stroke_color=<opentimelineio.adapters.svg.Color object>, fill_color=<opentimelineio.adapters.svg.Color object>)
draw_labeled_dashed_rect_with_border(rect, stroke_width=2.0, fill_color=<opentimelineio.adapters.svg.Color object>, border_color=<opentimelineio.adapters.svg.Color object>, label='', label_size=10.0)
draw_labeled_rect(rect, stroke_width=2.0, stroke_color=<opentimelineio.adapters.svg.Color object>, fill_color=<opentimelineio.adapters.svg.Color object>, label='', label_size=10.0)
draw_labeled_solid_rect_with_border(rect, stroke_width=2.0, fill_color=<opentimelineio.adapters.svg.Color object>, border_color=<opentimelineio.adapters.svg.Color object>, label='', label_size=10.0)
draw_line(start_point, end_point, stroke_width, stroke_color=<opentimelineio.adapters.svg.Color object>, is_dashed=False)
draw_rect(rect, stroke_width=2.0, stroke_color=<opentimelineio.adapters.svg.Color object>)
draw_solid_rect(rect, fill_color=<opentimelineio.adapters.svg.Color object>)
draw_solid_rect_with_border(rect, stroke_width=2.0, fill_color=<opentimelineio.adapters.svg.Color object>, border_color=<opentimelineio.adapters.svg.Color object>)
draw_text(text, location, text_size, color=<opentimelineio.adapters.svg.Color object>, stroke_width=1.0)
get_image()
opentimelineio.adapters.svg.convert_otio_to_svg(timeline, width, height)
opentimelineio.adapters.svg.convert_point_to_svg_coordinates(point, image_height)
opentimelineio.adapters.svg.convert_rect_to_svg_coordinates(rect, image_height)

Convert to SVG coordinate system (0,0 at top-left)

opentimelineio.adapters.svg.draw_item(otio_obj, svg_writer, extra_data=())
opentimelineio.adapters.svg.write_to_string(input_otio, width=2406.0, height=1054.0)