I've been extensively utilizing AE's support for parameter expressions for quite some time now, but my attempt to dip toes in scripting UIs isn't off to a very good start.
Not sure why, but I can't seem to get the multi-line edittext element, which appears to work fine in CS6, to work in CC as well.
The multi-line text-input field, while not without issues, works in CS6. Notice in the dialog screenshot below how the text aligns to the top, as you'd expect:
![Image](https://forums.adobe.com/servlet/JiveServlet/downloadImage/2-9510854-1204072/edittext.gif)
Additionally, line breaks can be set both by user during text input with the Ctr+Enter (Windows) key combination, as well as by the author in the script using the \n character (e.g. when populating the field with default text).
Now take a look at the appearance of the text field in the dialog box produced by the same script run in a CC (2017) app:
![Image](https://forums.adobe.com/servlet/JiveServlet/downloadImage/2-9510854-1204094/edittext.png)
To begin with, the text is vertically centered! Not only do I have no clue as to why, but I can't get it not to. Also, no matter what I try, I can't seem to accomplish a line break. The aforementioned keyboard shortcut (or its Mac counterpart) does nothing, while the mere inclusion of the \n character in the default text causes the field to render empty.
Please note that while the CC 2017 screenshot is from a Mac version of AE, the results were identical on Windows.
Here's an excerpt from the code containing the edittext portion.
Code: Select all
var message = createMessage.add('edittext',[0, 0,120, 60], 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\ eiusmod tempor incididunt ut labore et...');
Could you offer a solution and, perhaps, get me up to speed if I'm missing something?
Thanks
![Neutral :|](./images/smilies/icon_neutral.gif)