Struggling to understand TextDocument (text format layer you want)
Hello world
I spent a ton of time trying to figure the textDocument works, but I can't seem to wrap my mind around it.
In the script I'm working on, I take the text entered in an edittext box, then divided by Word, enter in a table. I add it to the model, a single word per layer. I would like to be able to choose the font size and color before creating these layers.
Here's the function that responds to a click of a button:
buttonCreate.onClick = function () { var stringArray = myEditText.text.split(" "); var stringArrayNumItems = stringArray.length; //Loop through stringArray words for(i=0;i<stringArrayNumItems;i++) { curComp.layers.addText(stringArray[i]); } }
So, I know I put this line which includes .addText inside in a variable. I don't know how to navigate and change its properties.
Thank you!
-Justin
var curComp = app.project.activeItem; Assume that the activeItem is a CompItem
If (curComp instanceof CompItem) {//Makes sure this is a CompItem
var myTextLayer = curComp.layers.addText ("original text layer creation"); Creates the text layer
var textProp = myTextLayer.property ("Source Text"); Assigns ownership of source text of layer of text to a variable
textDocument var = textProp.value;//Gets the value of the source text property
Begin to assign each associated text layer attribute to the variable textDocument
myString = "happy holidays!"
textDocument.resetCharStyle ();
textDocument.fontSize = 60;
textDocument.fillColor = [1, 0, 0];
textDocument.strokeColor = [0, 1, 0];
textDocument.strokeWidth = 2;
textDocument.font = "TimesNewRomanPSMT";
textDocument.strokeOverFill = true;
textDocument.applyStroke = true;
textDocument.applyFill = true;
textDocument.text = myString;
textDocument.justification = ParagraphJustification.CENTER_JUSTIFY;
textDocument.tracking = 50;
Apply all that data to your already created source textLayer text property
textProp.setValue (textDocument);
}
Tags: After Effects
Similar Questions
-
"The disk in drive F is not formatted. You want to format it now? »
Hi, here is my problem:
I've been working on documents word on my laptop today and save on my USB key, no problem. But when I went to my laptop after on the break for an hour, I inserted my USB and the above message appears. All of a sudden, I can't open or access one of my files on the memory stick - that's happened? It came not with the name of the memory stick, just 'removable disk (F) '. When I right click the icon and check the properties, it is said there are 0 bytes used and the Rob is all blue.
I am really worried - if I lost all my files? If so how did it happen? Is there a way to recover my files? I format the drive? I am in a panic, because I'm a teacher and I prepared all my classes, I can't believe they simply disappeared, could someone help me please? I'm desperate, I don't know what to do.
Thank you
This kind of error occurs generally when the file system is bad or there is a virus. The safest thing would be to scan your disk for viruses.
Good luck.
-
I can add a link in a text box that you want to edit in the browser
Is it possible to set up a text box with text and then edit the text to include a hyperlink in the browser edition with a site hosted on a third party server?
Thank you/Richard
Hi Richard,
Sorry for the IBE part missing. Unfortunately, it is not possible to create a link using IBE.
Kind regards
Aish
-
Add a new column in a report to rich TEXT format
I have a report to rich TEXT format and I want to add a new column that contains a formula of addition of let's say column A5 and A7. How do I get there? the A5 and A7 columns are the data loaded from the XML file. Thank youThe example given by Vetri is for the actual columns in the xml file only.
You can useMake sure that the values are not null. If so, convert or conditionally replaced by 0 number and use it.
-
Place pictures exactly where you want
Hello
Hope this finds you well.
I'm learning Dreamweaver. As a test exercise, I create a vertical navigation bar with bearings of the names of the pages at the top and to the bottom of the State. I inserted an already. However, I have now to add an another reversal as this one but don't know how. This is where styles come? If not, your help would be greatly appreciated.
Thank you!
If I understand the questions correctly and you want to add another image rollover under the first.
1. in design mode, make sure that your cursor is just after the first rollover image that is already in place. Then make a shift enter or return to create a line break. Now insert the next rollover by using the Insert menu image > image object > rollover image. This is a way I did in the past if I use bearings.
George - websiteguide.co
Submit a free item link to http://www.websiteguide.co
-
You want to use text as a form without converting shaped. is this possible?
I use PS6. You want to use text as a form for custom shapes with path operations.
hope can explain my problem.
If I understand what you want to do, you can use the blending Options: Custom on the text layer and set the opacity of fill to zero (0)
and the Knockout at shallow depth
-
Animate text, formatting on board.
Hello
I was wondering if someone could help me with the formatting of the text in edge animate. I'm putting together a series of interactive questionnaires, and while it captures how to create transitions and animations, etc. has been fast enough. For Dees life of me I can't understand how to format text in a text box. For example: I need to display:
' Books of Tolkien as a whole, that . I prefer is the Hobbit. »
It's pretty easy to get the whole of the italicized text box, I can't understand how to define 'What I like' in bold-italics in the text.
Any help would be appreciated.
Thank you
SYM. $('TextField") .css ({'color': ' rgba ('255,255,255,1.0'}); / / here missing a parenthesis after the single quote character 0 and is not necessary before 255 Lapsus workpiece
Thanks, finally I used sym. $("chat") .css ({'color': 'rgb (37,37,37)'});
-
Help understand the File Formats
I need help with the file formats. Is there an alternative to EPS files which allows customers to use vector graphics files in their projects? My client has a graphic logo vector she wishes that the background is transparent and the clarity of the vector illustration, rather than a Jpeg file. I read here that EPS files are becoming obsolete, but do not understand what it replaces. I know that SVG files can be used, but I thought that the user could use Adobe software to open it. Can someone please help me understand what file formats are best for logos?
Thank you!
Kim
For users of Illustrator, the preferred format is a simple Illustrator .ai file. The default options when registering as an Adobe Illustrator file include the incorporation of a PDF file in the Illustrator file. This means that the data is stored twice: once as an Illustrator fully editable file, complete with live effects, links to the placed art, layers, etc. and once in PDF format that can be read by many programs, including InDesign, Photoshop, Apple Preview, MS Word, Adobe Reader and many others.
If you only use Adobe programs, there is no reason to save the Illustrator EPS file. If you need to transfer your Illustrator files to another program, you must maintain with the limits of this program and its import options, which can mean saving in EPS format. If you work in a non Adobe drawing program, such as CorelDraw, but yo I want to convert your Illustrator illustrations, then the same restrictions apply. Try to save as many formats, including the native format of the program, PDF, EPS, and Illustrator. Open each in Illustrator and use the file kept more modifiable information, such as layers, text, and related files.
Tell us which programs and what are the versions, you use. Chances are there is someone here who has experience in this conversion and you can talk through it.
-
I had trouble with Thunderbird, I so re-installed. (Version 38.2.0) I use TB for years, usually with no problems. But this time, after re - install, when I "answer" text of the sender is in plain ASCII text format, regardless of the settings. And plain text is bright blue!
I want to preserve the HTML format (usual) of e-mail of the sender when I answer. My settings specify the HTML format.
I don't want to use TB with this "disability" - help! Thank you!
I don't see where you checked the compositions and the addressing of adjustment to your account. For all accounts also.
-
How do I change the format when you export music files to thubdrive?
I don't know if this has been posted. I had a very enigmatic comment when I tried that I didn't understand. Yet once, can I export music in lossless format file to a USB key and change its format to mp3 or aac? during the transfer?
Roll T,
When you add files to a USB drive, you simply make a copy. If you want a different format, first to make the new version of iTunes and copy the new file on the disk.
-
How can I save data in text format
How can I save data in text format in labwindows cvi
Hello
If your data is in a table, the easiest is to use the ArrayToFile function.
Automatically, it creates a file and puts your data in it depending on the size you provide.
If you have individual samples you need to write from time to time, you can either collect them in a table and then use ArrayToFile or open a file with fopen and write them as they are acquired with fwrite.
Hope this helps,
-
How to generate a report in text format
How to build a report in text format and send it to both a file and a printer?
Hi Chuck,
Yes, it seems that the printed report and save the report to the VI file seen in the link above from smercurio_fc is going to do what you need.
Also, here is an example of our community that can be useful to print to the printer by default by using report generation,.
I hope this helps!
-
Text formatting on SegmentedControl and inside the drop-down list
Hello
I'm trying to change the color of the text on the buttons of a SegmentedControl and part of a drop-down list.
I don't want to change the skin, but only the text. With the drop down menu, I managed to change the upper part (just what you see when the drop down menu is closed) using
myDropDown.button.setTextFormatForState(myUpColor, SkinStates.UP);
etc, but with the elements inside the list and buttons SegmentedControl I can't find a property that lets me set the text format...
Any ideas?
It doesn't seem to be an easy way to do.
The only way would be to extend the SegmentedControl and then override the following method with the following code. It should do the trick. We will work on making that it puts far more easily in the future.
override protected function onButtonAdded(child : RadioButton) : void { var dpLength : int = __dataProvider.length; child.width = Math.round( width / dpLength ); // change this to be percentages child.groupname = __groupName; //Set your formats to whatever you like here. child.setTextFormatForState( ThemeGlobals.getTextFormat( ThemeGlobals.SEGMENTED_CONTROL_FORMAT_DISABLED ), SkinStates.DISABLED ); child.setTextFormatForState( ThemeGlobals.getTextFormat( ThemeGlobals.SEGMENTED_CONTROL_FORMAT_OUT ), SkinStates.UP ); child.setTextFormatForState( ThemeGlobals.getTextFormat( ThemeGlobals.SEGMENTED_CONTROL_FORMAT_DOWN ), SkinStates.DOWN ); child.setTextFormatForState( ThemeGlobals.getTextFormat( ThemeGlobals.SEGMENTED_CONTROL_FORMAT_SELECTED ), SkinStates.SELECTED ); child.setTextFormatForState( ThemeGlobals.getTextFormat( ThemeGlobals.SEGMENTED_CONTROL_FORMAT_SELECTED_DISABLED ), SkinStates.DISABLED_SELECTED ); child.drawNow(); // set the button text formats here }
-
I have problems with the taking of a word document, the text in the text box in indesign and it change the character formatting to what I want. Here is what I do (I asked this before, but I never went forward with it and I can't find my original post.) I take a text document lets say its arial font with some bold inside. I want it to change automatically to Helvetica and keep the "BOLD" bold. At the moment I can do either or. I do not see how to keep normal Normal text and "BOLD" in the same paragraph "BOLD". EX below. How to put this in indesign and retain the formatting but replace the font Helvetica?
Learn Adobe InDesign, read answers to common questions, join our online community, or get instant help from Adobe support. Learn Adobe InDesign, read answers to common questions, join our online community, or get instant assistance from Adobe support. Learn Adobe InDesign, read answers to common questions, join our online community, or get instant assistance from Adobe support. Learn Adobe InDesign, read answers to common questions, join our online community, or for immediate help from Adobe support. Learn Adobe InDesign, read years communitywers to questions, join our com online, or get immediate help from Adobe support.
Thank you
Alain bombaert
If you want to know everything about using Word and InDesign together, take a look at this comprehensive online video tutorial:
You can get a free 10 day trial.
-
How to show the white space of the text formatted?
Hello
I use Jdev 11.1.1.6.0 with ADF Faces.
I have a requirement to show a text report page in recorded format. The report in text format is saved as a text report several records with each line containing the maximum 78 characters.
Each drive is formatted with a space to display the data in the column. For example:
SUMMARY
-------
Col1 Col2 Col3
xyz1234 abc9999 mno1234
...
The report data appears currently unformatted. It removes the white space and shows just with a few default spaces. Something like:
SUMMARY
-------
Col1 Col2 Col3
xyz1234 abc9999 mno1234
...
Thus, you cannot read the data with the appropriate column header. If you query the table in SQL Developer, it shows with perfect formatting. Also our legacy Oracle Forms application to display with the correct format.
Currently, I tried following, but it does not work:
< af:outputText value = "#{row.rptText}" id = 'ot1' "
inlineStyle = "do-family:"Courier New";" font-size: 12.0pt; »
noWrap = "false" / >
I tried this on af:column too, especially noWrap = 'false', but so far without success.
Any help is appreciated.
Thank you
JAI
If you can use a converter custom jsf (validation and conversion of entry) to change in the query using "pre" helped the (text with pre sourrounf) when the data is rendered. The converter must implement two methods. Then you can try to use ' ' as a space of unbreakeable instead of simple spaces.
Timo
Maybe you are looking for
-
(A) messages do not appear, but reappear when I press "fix" they disappear immediately. (B) Impossible to locate messages after saving as drafts, can't find a project folder anywhere in the latest version of Tbird.f C) in the window on the side of th
-
Re: Integrated webcam Satellite P300 does not: locked by another application
Hello The webcam integrated on my Satellite P300-h-13 no longer works. When I try to use it I get the following message: locked by another application. The only program on my computer that uses a webcam is MSN Messenger, Skype Yes or as some programs
-
How to check if a table contains a table
I have an array array1 say array that contains several tables. I have another table say array2. Now, I want to check whether or not arrray1 contains array2. How can I check this?
-
Pavilion a1540n Power Supply Upgrade
I'm looking to upgrade my power supply (400w or greater) so that I can put in a new video card. Known there for a replacement PS sources? How easy is it TSE replace one of them?
-
I want to remove pre-installed windows 8 and want to install windows xp in hp 6 but idont know how to install