Help with scripting text layer
Verfasst: Mo 14 Feb 2022 19:31
I would like to add tabulations in the paragraphs generated by the following script :
Note : The text is contained in the "txt" variable
Set layer = doc.ActiveLayer
Set fontDict = CreateObject("PhotoLine.Dictionary")
fontDict.Add "FamilyName", "Arial", "Size", 72
Set paragraphDict = CreateObject("PhotoLine.Dictionary")
paragraphDict.Add "Alignment", 0
Set textLayer = CreateObject("PhotoLine.Text")
textLayer.Text = txt
textLayer.Origin = Array(500, 500)
textLayer.Size = Array(4000, 2500)
textLayer.SetAttribute range, "Font", fontDict
textLayer.SetAttribute range, "Paragraph", paragraphDict
textLayer.SetAttribute range, "Color", Array(128, 0, 0)
layer.Parent.Insert textLayer, layer
How should I declare two left aligned tabs ?
Thanks
Phil
Note : The text is contained in the "txt" variable
Set layer = doc.ActiveLayer
Set fontDict = CreateObject("PhotoLine.Dictionary")
fontDict.Add "FamilyName", "Arial", "Size", 72
Set paragraphDict = CreateObject("PhotoLine.Dictionary")
paragraphDict.Add "Alignment", 0
Set textLayer = CreateObject("PhotoLine.Text")
textLayer.Text = txt
textLayer.Origin = Array(500, 500)
textLayer.Size = Array(4000, 2500)
textLayer.SetAttribute range, "Font", fontDict
textLayer.SetAttribute range, "Paragraph", paragraphDict
textLayer.SetAttribute range, "Color", Array(128, 0, 0)
layer.Parent.Insert textLayer, layer
How should I declare two left aligned tabs ?
Thanks
Phil