Skip to content

How to build a Media Bin

Tim Franklin edited this page May 11, 2020 · 7 revisions

How to build a media bin

To build a functional media bin it is helpful to know what data needs to be included as well as the difference between standard cue settings vs specialized cue settings. Here's the constructor for the CueSpec object which is what we use to set the standard cue settings. ` class CueSpec:

def __init__(self, Cuetype = None, Title=None, Thumbnail=None, Cuelength = None, Starttime = None, Backgroundcolorr = None, Backgroundcolorg = None, Backgroundcolorb = None, Layer = None , customTypePage = None):
    self.Cuetype = Cuetype
    self.Title = Title
    self.Thumbnail = Thumbnail
    self.Cuelength = Cuelength
    self.Starttime = Starttime
    self.Backgroundcolorr = Backgroundcolorr
    self.Backgroundcolorg = Backgroundcolorg
    self.Backgroundcolorb = Backgroundcolorb
    self.Layer = Layer
    self.CustomTypePage = customTypePage

`

Next we need to provide the data for the specialized cue data. Specialized cue data is the data specific to the type of cue you are building. The user's drop script will pass a dictionary with key/value pairs for each parameter in the cue.

Here's an example Cue Specialization Dictionary for a Media Cue -

` specializedPars = {

"Moviefile" : "My File.png",

"Loop" : True,

"Triminout1" : .1,

"Triminout2" : .4,

"Fadeinout1" : .5,

"Fadeinout2" : .5

}

`

Cue Types

Clone this wiki locally