Is there any way to save an array or dictionary directly into/with a krita document? - Develop / Plugins Development - Krita Artists (krita-artists.org) Document Class Reference (kde.org) from krita import * import re fileName= "/home/grum/test.kra" print( '================================================= EXAMPLE 1 =================================================' ) doc = Krita.instance().createDocument( 300 , 300 , "Test" , "RGBA" , "U8" , "" , 300.0 ) data1= """gam_p1s1=0.5,0.1,0.9,0.5,0.5,0.9,0.1,0.5 gam_p1s3=0.5,0.1,0.84641,0.7,0.15359,0.7 gam_p1s4=0.5,0.1,0.9,0.5,0.5,0.9,0.1,0.5 gam_p2s1=0.5,0.1,0.675,0.275,0.5,0.45,0.325,0.275,0.5,0.55,0.675,0.725,0.5,0.9,0.325,0.725 gam_p3s3=0.5,0.5,0.5,0.15359,0.8,0.32679,0.8,0.67321,0.5,0.84641,0.2,0.67321,0.2,0.32679""" doc.setAnnotation( 'my_plugin_reference_annotation_key1' , "my annotation description" , QByteArray(data1.en...