![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Variables | |
styletree = ET.parse(argv[1]) or die("This doesn't work for me") | |
styleroot = styletree.getroot() | |
xmpmeta | |
rdf = ET.SubElement(xmpmeta,"rdf:RDF",{"xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#"}) | |
description | |
maskid = ET.SubElement(description,"darktable:mask_id") | |
masktype = ET.SubElement(description,"darktable:mask_type") | |
maskname = ET.SubElement(description,"darktable:mask_name") | |
maskversion = ET.SubElement(description,"darktable:mask_version") | |
mask = ET.SubElement(description,"darktable:mask") | |
masknb = ET.SubElement(description,"darktable:mask_nb") | |
masksrc = ET.SubElement(description,"darktable:mask_src") | |
darktablehistory = ET.SubElement(description,"darktable:history") | |
darktablehistoryid = ET.SubElement(darktablehistory,"rdf:Seq") | |
enabled = plugins.find('enabled') | |
li = ET.SubElement(darktablehistoryid,"rdf:li") | |
modversion = plugins.find('module') | |
operation = plugins.find('operation') | |
params = plugins.find('op_params') | |
blendop_params = plugins.find('blendop_params') | |
blendop_version = plugins.find('blendop_version') | |
multi_name = plugins.find('multi_name') | |
multi_priority = plugins.find('multi_priority') | |
dtstyle_to_xmp.blendop_params = plugins.find('blendop_params') |
dtstyle_to_xmp.blendop_version = plugins.find('blendop_version') |
dtstyle_to_xmp.darktablehistory = ET.SubElement(description,"darktable:history") |
dtstyle_to_xmp.darktablehistoryid = ET.SubElement(darktablehistory,"rdf:Seq") |
dtstyle_to_xmp.description |
dtstyle_to_xmp.enabled = plugins.find('enabled') |
dtstyle_to_xmp.li = ET.SubElement(darktablehistoryid,"rdf:li") |
dtstyle_to_xmp.mask = ET.SubElement(description,"darktable:mask") |
dtstyle_to_xmp.maskid = ET.SubElement(description,"darktable:mask_id") |
dtstyle_to_xmp.maskname = ET.SubElement(description,"darktable:mask_name") |
dtstyle_to_xmp.masknb = ET.SubElement(description,"darktable:mask_nb") |
dtstyle_to_xmp.masksrc = ET.SubElement(description,"darktable:mask_src") |
dtstyle_to_xmp.masktype = ET.SubElement(description,"darktable:mask_type") |
dtstyle_to_xmp.maskversion = ET.SubElement(description,"darktable:mask_version") |
dtstyle_to_xmp.modversion = plugins.find('module') |
dtstyle_to_xmp.multi_name = plugins.find('multi_name') |
dtstyle_to_xmp.multi_priority = plugins.find('multi_priority') |
dtstyle_to_xmp.operation = plugins.find('operation') |
dtstyle_to_xmp.params = plugins.find('op_params') |
dtstyle_to_xmp.rdf = ET.SubElement(xmpmeta,"rdf:RDF",{"xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#"}) |
dtstyle_to_xmp.styleroot = styletree.getroot() |
dtstyle_to_xmp.styletree = ET.parse(argv[1]) or die("This doesn't work for me") |
dtstyle_to_xmp.xmpmeta |