Hi Marcus,
I tried the following script; helas, it did not work; I must be doing someting wrong:
[IConfig,3.1]
[MemCreate,“MemBestand”,1000]
[vardef,bestand,""][vardef,intro,""]
[vardef,#recorded,""]
[vardef,p,0]
[vardef,lengte,0]
[IButton,“ZPlugin:LayerMemProef”,
" ",
//load MemBestand from file:
[MemCreateFromFile,MemBestand,“ZBRUSH_ZStartup\ZPlugs\LayerPaintTemp\Paint#0.txt”]
//now get #recorded from MemBestand:
[MemReadString,“MemBestand”,#recorded]
////Now change #recorded :
[varset,p,[StrFind,“key”,#recorded]]
[messageok,[strmerge,“p=”,p]]
[varset,lengte,[strlength,#recorded]]
[messageok,[strmerge,“lengte=”,lengte]]
[varset,#recorded,[strextract,#recorded,(p+4),lengte]] //from ‘,’ after ‘key."’
[varset,#recorded,[strmerge,“If,1”,#recorded]] //before ', ’ added
//#recorded save in MemBestand:
[MemWriteString,“MemBestand”,#recorded,0]
//save MemBestand in file:
[MemSaveToFile,MemBestand,“ZBRUSH_ZStartup\ZPlugs\LayerPaintTemp\Paint#0.txt”]
//later:
[ipress,zscript:text]
[messageok,“Load Paint#0 with txt ON and this should be readable in the new ‘If,1,’-form”]
]
Maybe you can give me some comments; as from when you have some time again?
Greetings, EddyL