# add text to list effects_text[xmldoc.getElementsByTagName("title")[0].childNodes[0].data] = full_file_path effects_text[xmldoc.getElementsByTagName("description")[0].childNodes[0].data] = full_file_path # get params params = xmldoc.getElementsByTagName("param") # Loop through params for param in params: if param.attributes["title"]: effects_text[param.attributes["title"].value] = full_file_path # Append on properties from libopenshot objects = [openshot.Clip(), openshot.Bars(), openshot.Blur(), openshot.Brightness(), openshot.ChromaKey(), openshot.ColorShift(), openshot.Crop(), openshot.Deinterlace(), openshot.Hue(), openshot.Mask(), openshot.Negate(), openshot.Pixelate(), openshot.Saturation(), openshot.Shift(), openshot.Wave()] # Loop through each libopenshot object for object in objects: props = json.loads(object.PropertiesJSON(1)) # Loop through props for key in props.keys(): object = props[key] if "name" in object.keys(): effects_text[object["name"]] = "libopenshot (Clip Properties)" if "choices" in object.keys(): for choice in object["choices"]: effects_text[choice["name"]] = "libopenshot (Clip Properties)"
[0].childNodes[0].data] = full_file_path # get params params = xmldoc.getElementsByTagName("param") # Loop through params for param in params: if param.attributes["title"]: effects_text[param.attributes["title"].value] = full_file_path # Append on properties from libopenshot objects = [ openshot.Clip(), openshot.Blur(), openshot.Brightness(), openshot.ChromaKey(), openshot.Deinterlace(), openshot.Mask(), openshot.Negate(), openshot.Saturation() ] # Loop through each libopenshot object for object in objects: props = json.loads(object.PropertiesJSON(1)) # Loop through props for key in props.keys(): object = props[key] if "name" in object.keys(): effects_text[object["name"]] = "libopenshot (Clip Properties)"
# add text to list effects_text[xmldoc.getElementsByTagName("title")[0].childNodes[0].data] = full_file_path effects_text[xmldoc.getElementsByTagName("description")[0].childNodes[0].data] = full_file_path # get params params = xmldoc.getElementsByTagName("param") # Loop through params for param in params: if param.attributes["title"]: effects_text[param.attributes["title"].value] = full_file_path # Append on properties from libopenshot objects = [openshot.Clip(), openshot.Blur(), openshot.Brightness(), openshot.ChromaKey(), openshot.Deinterlace(), openshot.Mask(), openshot.Negate(), openshot.Saturation()] # Loop through each libopenshot object for object in objects: props = json.loads(object.PropertiesJSON(1)) # Loop through props for key in props.keys(): object = props[key] if "name" in object.keys(): effects_text[object["name"]] = "libopenshot (Clip Properties)" if "choices" in object.keys(): for choice in object["choices"]: effects_text[choice["name"]] = "libopenshot (Clip Properties)"