Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

How to add characterAttributes to a paragraphStyles?

$
0
0

Hi,

 

is it possible to add characterAttributes to a paragraph Style?

 

My script is like that and does not work

 

var aDoc=app.activeDocument;

try { var myAF = aDoc.ParagraphStyles.getByName("VM-groß")                               }        catch (err) {            myAF = aDoc.paragraphStyles.add("VM-groß");            var paraAttr = myAF.paragraphAttributes;
paraAttr.justification = Justification.LEFT;
paraAttr.firstLineIndent = 10;
var paraAttr = myAF.characterAttributes;         
paraAttr.size = 40;
paraAttr.overprintFill = true;
paraAttr.textFont = app.textFonts.getByName("HelveticaNeueLTStd-Bd");
paraAttr.baselineShift = 5;                    }

Thanks for your help.


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>