Tuesday, September 29, 2015

Ubot Code Gen Text Animation (GIF)

clear list(%Chars)
set(#Text,"Hello World","Global")
add list to list(%Chars,$find regular expression(#Text,"[\\w\\n ]"),"Don\'t Delete","Global")
loop($list total(%Chars)) {
set(#Temp,$next list item(%Chars),"Global")
set(#CharCount,$list position(%Chars),"Global")
set(#TextOut,$substring(#Text,0,#CharCount),"Global")
plugin command("Advanced Image.dll", "text to image", #TextOut, "Segoe UI", 90, 000000, "FFFFFF", 700, 300, $plugin function("Advanced Data Text File.dll", "$create file loop name", "{$special folder("Application")}\\Images Out.jpg", "_", 1000, "False"))
}
add list to list(%ImageFiles,$plugin function("Advanced Data Text File.dll", "$get files 2", $special folder("Application"), "*.jpg", "True", "Root Directory Only"),"Delete","Global")
plugin command("Advanced Image.dll", "image to gif", %ImageFiles, "{$special folder("Application")}\\Test Text Gif.gif", 500)

No comments:

Post a Comment