def from_script(cls, object): from dayu_ffmpeg.ffscript import parse_ffscript_data instance = super(BaseGroupNode, cls).from_script(object) instance.inside_nodes = UniqueList( [parse_ffscript_data(n) for n in instance.inside_nodes]) instance.inside_edges = UniqueList( [parse_ffscript_data(n) for n in instance.inside_edges]) return instance
def from_script(cls, object): from dayu_ffmpeg.ffscript import parse_ffscript_data instance = cls() instance.__dict__.update(object) instance.parent = parse_ffscript_data(instance.parent) instance.in_edges = UniqueList( [parse_ffscript_data(e) for e in instance.in_edges]) instance.knobs = UniqueList( [parse_ffscript_data(k) for k in instance.knobs]) return instance
def from_script(cls, object): from dayu_ffmpeg.ffscript import parse_ffscript_data instance = cls() instance.__dict__.update(object) instance.parent = parse_ffscript_data(instance.parent) instance.endpoints = TwoEndPoints(instance.endpoints['left'], instance.endpoints['right']) return instance