Linking source text property in AE CS6 to external text document
Hi,
I would like to load text from an external .txt file into the Source Text property. I've seen multiple ways to do this around the web, but it seems like it's changed in CS6. (All the examples I've found are for CS4 or CS5.)
I'm on a macbook pro. The .txt file (data.txt) is on the desktop.
This is what I've tried to map into the Source Text property:
1)
myPath = "/data.txt"; try{ $.evalFile (myPath); eval(thisComp.name); }catch (err){ "not found" }
Here I get "not found".
2)
myPath = "/c/data.txt"; $.evalFile(myPath)
Here I get the error: "File or folder does not exist".
The name of my comp is "sc100" and the text file says:
sc100 = "My Text"; ;
Is there a proper way to do this in CS6? Or am I just doing it wrong?
- KolibriEirik
I've been trying the entire afternoon with this expression and also Harry Frank's and haven't been able to make it work, I even imported an old project where it worked fine and in that comp it still does, but the new one doesn't. I moved the data file to the location where I have the one for the old project and I was able to make it work, however I can't leave it there becasue I'm doing this project in a different machine,
This are the expressions that I have tried so far:
myPath = ~/Desktop/combinedcaptions.txt
try{
$.evalFile (myPath);
eval(thisComp.name);
}catch (err){
"not found"
try
myPath="~/Desktop/captions.txt";
$eval(thisComp.name)[0];
catch
(err)
"missing"
if ($.os.indexOf("Mac") != -1)
myPath = "/Volumes/750GB/Mount Sinai_Carousel_David/Expressions/";
else
myPath = "file://c:\\\\Expressions\\";
myPath += "CombinedCaptions.txt";
$.evalFile (myPath);
eval(thisComp.name)[0];
Only the third one worked, but just as long I placed it in a different directory, which I can't.
Can anyone help? I'm due to deliver over a 100 captions tomorrow.
Similar Messages
-
Is there any way to link page number with the reference page number within text in InDesign CC and CS6?
You should ask in InDesign
The Cloud forum is not about using individual programs
The Cloud forum is about the Cloud as a delivery & install process
If you will start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll -
Layer Source Text linking to external text. (no code in doc!)
I've seen linking to text documents with code snippets in it.
So that means the external text document must contain bits of scripting.
I would like to link to txt documents (or csv) that do not contain code.
Total noob users must be able to link a text to a After Effects project.
I have a website data catcher which exports CSV values.
It would be ideal if After Effects can hoover up the text and put certain pieces into certain source texts.
We're talking automated sports cards here.
Is this possible without adding code to a text dump?
Or is this just impossible?The basic idea is to use something like this:
myPath = "/c/test/txt.txt";
$.evalFile (myPath);
The text file does need to contain legal JavaScript code, but it could be as simple as this for a text layer:
"this is a test"
You generally want to wrap the $.evalFile() in a try/catch so that you can have an error string like "Not found." display if your path is bad, like this:
myPath = "/c/badpath/txt.txt";
try{
$.evalFile (myPath);
}catch(err){
"Not found."
Dan -
How to customize the content set in text as part of tag cq:text property="text"/
We use the tag <cq:text property="text"/> to get the content, which is set in the jcr property "text". Text was set in Richtext component and it has hyper link.
Now, we have to customize the text.
Example:-
Actual Text in 'text' property:-
<p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer.html">here</a> for the link</p> <p></p>
After customization in 'text' property:-
<p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer">here</a> for the link</p> <p></p>
i.e .html has been removed.
I tried customizing and set back to text attribute using <c:set var="text" value="<CustomizedText>" /> but even after that tag <cq:text property="text"/> retrieves the old content i.e with .html
Please suggest how to override text content, so that the tag <cq:text property="text"/> will print customized text.Which version of cq? Is Strict Extension Check enabled at http://<host>:<port>/system/console/configMgr/com.day.cq.rewriter.linkchecker.impl.LinkCheckerTra nsformerFactory
Thanks,
Sham -
Why capital letters change in lower after copying them from a PDF document (Made by InDesign), or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.
your home page to get into your Web site should be index.html (for Mac) or index.htm (on PC)
You can name it something other than index, but will be harder to find. when you create the subjects and link to them, they can can be named anything with the html extension Or if your using PHP end in .php. There is a Microsoft type asp or aspx but your hosting service has to set up using windows server system.
My hosting service use a Linux server normally but can convert Windows for a Fee. UNIX Linux has no concept of asp or aspx.
See this : https://skitch.com/pjonescet/8mnnx/dreamweaver -
Unicode characters not displayed in text property
I am developing a web application with Flex Builder. I write
the text for each label using a font called Dhivehi which is
written from left to right, and then copy the text and paste it in
the label property called text.
However in the source code view the text property of the
label shows
text=""
The issue is that when rendered the text is rversed. So I
want to run a function once the application is loaded, to reverse
the text in the label, so that the text will appear in it's
original way.
any help will be very much appreciatedHi,
I have a strange problem here with Windows.Forms.RichTextBox, when I assign a .ToString() value of sting builder to a rich text box’s .Rtf Property the Unicode characters containing in string builder gets converted to ???? symbols in .Rtf property of rich
text box.
Could you please let me know if Rich text box’s .Rtf property can hold Unicode characters? or is there any other way to store the Unicode characters in rich text box?
Thanks & Regards,
Tabarak
Hello,
To clarify and help you get proper solution, I would recommend you share a rtf string or even a simple sample which could reproduce that issue with us.
We will based on that sample to help you.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Runtime Error R6025 while creating text in Premiere Pro CS6
I've looked at a number of posts on this, it seems to pop up for different reasons.
For me, it only seems to happen, and happen inconsistently but often, when I am creating or editing text in Premiere Pro CS6
"Microsoft Visual C++ Runtime Library
Runtime error!
Program: C:\Progra...
R6025
- pure virtual function call"
I'm am self taught on both the PC and Premiere, and by that I mean I can get around okay, but am in no way an expert in either; so when other posts start talking coding, ain't nobody got time for that.
I'm on a new Asus G750J
Windows 8.1, 64-bit
Intel Core i7-4700HQ CPU @ 2.40GHz
(Unrelated note... why is this computer not doing GPU accerlation?)A search on Google leads me to guess that your registry is messed up, see this link:
http://www.microsoftvisualcruntimelibrary.com/r6025-pure-virtual-function-call.php?tid=080 38&gclid=CJff9eXtmZoCFQJN5Qodo3H49A
Try a registry cleaner and see what happens. -
Link source changed after packaging
Hi!
I have a book with several files. Each file has several links ( to images). Images are located on the file server, few of them are on my own computer. After making a package for printing, all the link sources in the original file changed. Now all the links point to "Links" folder that is in that package folder. Is that normal? Or it's some kind of bug? I'm confused why did that happen.. except one .ai file that I used for logo in each file didn't change it's source... Now I have to relink each image...
I'm using latest InDesign CC, Windows 7.continuing... But I have CS6 8.0.2 perpetual - not CS6 from the Creative Cloud (CC), so it is I think a few versions behind the one you download or update from the cloud. I just tested it again and it is fine.
BUT InDesign CC2014.1 does mess-up the original files and saves them if you choose "Update Graphic Links in Package", it links them BOTH to the package, no good.
I don't have the latest CC2014.2, not sure how that behaves.
If you DON'T check "Update Graphic Links in Package" then it doe not re-link or save the original (unless yo didn't save before packaging then of course it does save but not relink original. But then the Packaged files are not re-linked either.
Bummer. So making a copy of the original files is the easiest workaround (or a 3rd-party packager plugin or app would work too, I hope--don't have one of those anymore) -
Timemachine and link not work property...
At home I have 10.4.2 and no digidesign hardware.
Timemachine and link not work property...
I send them: when I use ol algorythm- they caclulating 1 mono file (3 min lengh) about 15 min at dual G5. It is normal? And when I use new algorytm- nothign happen whith file. No result. (1 week it work fine).
Link in matrix not work
And what system I shood to use at studio whith PT?CRash when change lengh of region whith new algoruthm
Date/Time: 2005-08-24 12:11:29.752 +0400
OS Version: 10.4.2 (Build 8C46)
Report Version: 3
Command: Logic Pro
Path: /Applications/Logic Pro.app/Contents/MacOS/Logic Pro
Parent: WindowServer [91]
Version: 7.1.0 (7.1.0(877))
Build Version: 1A73
Project Name: LogicPro710_ApplicationData
Source Version: 900001
PID: 288
Thread: 0
Exception: EXCBADACCESS (0x0001)
Codes: KERNPROTECTIONFAILURE (0x0002) at 0x0000007e
Thread 0 Crashed:
0 com.apple.logic.pro 0x0059a8c8 0x1000 + 5871816
1 com.apple.logic.pro 0x0037183c 0x1000 + 3606588
2 com.apple.logic.pro 0x00370000 0x1000 + 3600384
3 com.apple.logic.pro 0x002983b4 0x1000 + 2716596
4 com.apple.logic.pro 0x00298a84 0x1000 + 2718340
5 com.apple.logic.pro 0x00298c28 0x1000 + 2718760
6 com.apple.logic.pro 0x0005e264 0x1000 + 381540
7 com.apple.logic.pro 0x0005c6e0 0x1000 + 374496
8 com.apple.logic.pro 0x002aa538 0x1000 + 2790712
9 com.apple.logic.pro 0x00571e10 0x1000 + 5705232
10 com.apple.logic.pro 0x0016c090 0x1000 + 1486992
11 com.apple.logic.pro 0x0017864c 0x1000 + 1537612
12 com.apple.logic.pro 0x00178ad8 0x1000 + 1538776
13 com.apple.logic.pro 0x0016c150 0x1000 + 1487184
14 com.apple.logic.pro 0x0018e388 0x1000 + 1627016
15 com.apple.logic.pro 0x0018e588 0x1000 + 1627528
16 com.apple.logic.pro 0x0017d0cc 0x1000 + 1556684
17 com.apple.logic.pro 0x00124170 0x1000 + 1192304
18 com.apple.logic.pro 0x002fed40 0x1000 + 3136832
19 com.apple.logic.pro 0x003026a8 0x1000 + 3151528
20 com.apple.logic.pro 0x00300a94 0x1000 + 3144340
21 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692
22 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
23 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40
24 com.apple.HIToolbox 0x93229ffc SendEventFromMouseDown + 156
25 com.apple.HIToolbox 0x93205998 HandleClickInContent + 368
26 com.apple.HIToolbox 0x93155d6c HandleWindowEvent + 1584
27 com.apple.HIToolbox 0x931655c8 StandardWindowEventHandler + 160
28 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692
29 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
30 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40
31 com.apple.HIToolbox 0x93229ffc SendEventFromMouseDown + 156
32 com.apple.HIToolbox 0x931b6b08 HandleWindowClick + 572
33 com.apple.HIToolbox 0x931b6560 HandleMouseEvent + 456
34 com.apple.HIToolbox 0x931655bc StandardWindowEventHandler + 148
35 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692
36 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
37 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40
38 com.apple.HIToolbox 0x931b5530 HandleMouseEventForWindow(OpaqueWindowPtr*, OpaqueEventRef*, unsigned short) + 236
39 com.apple.HIToolbox 0x931b4aa8 HandleMouseEvent(OpaqueEventRef*) + 368
40 com.apple.HIToolbox 0x9312923c ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 496
41 com.apple.HIToolbox 0x93122c44 DispatchEventToHandlers(EventTargetR -
I am working no one SSRS my table headers are freeze cangrow property is false and my report is working perfect while rendering data on RDL and i want same report after exporting in Excel also , i want my table header to be freeze and wrap text property
to work after exporting in my report in excel but its not working ,is there any solution ? any patch ? any other XML code for different rendering ?Hi Amol,
According to your description, you find the wrap text property and fix column is not working after exporting into Excel. Right?
In Reporting Services, when exporting to excel file, it has limitation for textbox.
Text boxes are rendered within one Excel cell. Font size, font face, decoration, and font style are the only formatting that is supported on individual text within an Excel cell.
Excel adds a default padding of approximately 3.75 points to the left and right sides of cells. If a text box’s padding settings are less than 3.75 points and is just barely wide enough to accommodate the text, the text may wrap in Excel.
In this scenario, it supposed to be wrap text unless you merge cells. If cells are merged, word-wrap does not work correctly. If any merged cells exist on a row where a text box is rendered with the
AutoSize property, autosize will not work. For the Fix Data Property, it can't be working in Excel. These are features when exporting to Excel. We can't change it because it's by design.
Reference:
Exporting to Microsoft Excel (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Changing Text property of TextObject at runtime has unexpected results
I'm using the version of Crystal Reports that ships with VS 2008.
At runtime, I'm replacing the text of a TextObject with new text. This works fine when the TextObject contains only literal information, but when the TextObject contains a formula field it does not work as expected.
If I have the following in the designer:
Text1 with text of "Number: {@FormulaX}"
And in the runtime code (in the InitReport method):
Text1.Text = "N.: {@FormulaX}"
The observed output is: N.: {@ForumlaX}
Instead of the expected output of: N.: 5
I even tried the following in the runtime code:
string foo = Text1.Text;
Text1.Text = foo;
And it produced similar results.
Any ideas on what's going on, or how to get the results I'm expecting?The Text property doesn't interpret the formula syntax. You'll need to use a RAS TextObject to accomplish this.
Note: This inproc RAS code will only work with Crystal Reports XI R2 SP2 and Crystal Reports 2008.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.DataDefModel;
public partial class _Default : System.Web.UI.Page
protected ReportDocument boReportDocument;
protected void Page_Load(object sender, EventArgs e)
if (!this.IsPostBack)
ConfigureCrystalReports();
CrystalReportViewer1.ReportSource = Session["Report"];
protected void ConfigureCrystalReports()
ISCDReportClientDocument boReportClientDocument;
CrystalDecisions.ReportAppServer.Controllers.ReportObjectController boReportObjectController;
CrystalDecisions.ReportAppServer.ReportDefModel.TextObject boOldTextObject, boNewTextObject;
CrystalDecisions.ReportAppServer.ReportDefModel.Paragraph boParagraph;
CrystalDecisions.ReportAppServer.ReportDefModel.ParagraphFieldElement boParagraphFieldElement;
CrystalDecisions.ReportAppServer.ReportDefModel.ParagraphTextElement boParagraphTextElement;
boReportDocument = new ReportDocument();
boReportDocument.Load(Server.MapPath("CrystalReport.rpt"));
boReportClientDocument = boReportDocument.ReportClientDocument;
boReportObjectController = boReportClientDocument.ReportDefController.ReportObjectController;
// Get a handle on the ReportObjectController so we can manipulate the TextObject
foreach (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject boReportObject in boReportObjectController.GetAllReportObjects())
if (boReportObject.Kind == CrystalDecisions.ReportAppServer.ReportDefModel.CrReportObjectKindEnum.crReportObjectKindText)
boOldTextObject = (CrystalDecisions.ReportAppServer.ReportDefModel.TextObject)boReportObject;
boNewTextObject = (CrystalDecisions.ReportAppServer.ReportDefModel.TextObject)boOldTextObject.Clone(true);
// Clear out all paragraphs from the current text object
boNewTextObject.Paragraphs.RemoveAll();
// Create a new Paragraph to add to our TextObject
boParagraph = new CrystalDecisions.ReportAppServer.ReportDefModel.Paragraph();
// Create a new ParagraphTextElement to be added to our paragraph
boParagraphTextElement = new CrystalDecisions.ReportAppServer.ReportDefModel.ParagraphTextElement();
boParagraphTextElement.Text = "The value of my parameter is: ";
boParagraph.ParagraphElements.Add(boParagraphTextElement);
// Create a new ParagraphFieldElement (our parameter field) to be added to our paragraph
boParagraphFieldElement = new CrystalDecisions.ReportAppServer.ReportDefModel.ParagraphFieldElement();
boParagraphFieldElement.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrParagraphElementKindEnum.crParagraphElementKindField;
boParagraphFieldElement.DataSource = "{?Currency}";
boParagraph.ParagraphElements.Add(boParagraphFieldElement);
boNewTextObject.Paragraphs.Add(boParagraph);
boReportObjectController.Modify(boOldTextObject, boNewTextObject);
break;
Session.Add("Report", boReportDocument); -
How to change the colour of text property in Radio button?
Hello All,
I am having some radio buttons in my application. i want to change the colour of text property by default it is black.
Could any one please suggest me how to do it?
Thanks in advance.Currently you cannot, it is a known (and hopefully reported, and at least addressed for next version) bug (or limitation, as they rushed to get the components out before JavaOne...).
People reported they just put an empty text and put a label beside the component. Ugly workaround (bad when the component will be complete) but if it works... :-) -
How to set the 'text' property of a 'Header' region dynamically?
Hi,
I have a requirement to display the 'text' property of a 'Header' region, based on a query.
So I need to set the text property programatically in CO.
Can I use setText("..") by getting the handler to the 'Header' region?
If so, How to get the handler for the 'Header' region?
Message was edited by:
user594528How to get the handler for the 'Header' region to call the setText()?
OAHeaderBean Header1 = (OAHeaderBean)...........................
Header1.setText("...."); -
How to get the 'text' property value of a button in coding?
Hi Experts,
I'm using 10 buttons all are having common action('click'). when i click a button the 'text' value of the button should pass to a function.So the action is same but the passed value will be the 'text' value of the corresponding button. I don't know how to get the 'text' property of a button in coding. Kindly help me to solve this problem.
Thanks and Regards
BasheerHi,
My event is like this.
public void onActionclick(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
String s = ? ; // should get the 'text' property of clicked button
fillInput(s); // function to be called
The called function is,
public void fillInput( java.lang.String id )
String str=wdContext.currentContextElement().getNum();
str = str + id;
wdContext.currentContextElement().setNum(str);
How can i get the 'text' property value of the corresponding button. Click action should be common to all buttons.
Thanks and Regards,
Basheer -
About Query Data Source Columns property
Hello everyone,
I'm new to Oracle Forms version 10.1.0.2.
When I create a data block based on a table using Data Block Wizard, the block's Query Data Source Columns property is automatically populated with column definition entries corresponding to the columns of the base table.
I tried making changes to these entries, for example by changing the data types to wrong data types or even deleting them, and I found that those changes had no effect on the block at all. The form was still working as I wanted.
Please explain what is exactly the role of the block's Query Data Source Columns property.
Thank you very much.
p.s: The F1 key help says "The Query Data Source Columns property is valid only when the Query Data Source Type property is set to Table, Sub-query, or Procedure". So, please explain in each context of Query Data Source Type.p.s: The F1 key help says "The Query Data Source Columns property is valid only when the Query Data Source Type property is set to Table, Sub-query, or Procedure". So, please explain in each context of Query Data Source Type.
IMHO those properties are very self-explaining: It is the data source of the block, or in other terms: how it is populated.
Table means the data block is based on a table and subsequently will be populated by
select col1, col2, col3 from your_table
With sub-query the block will be populated with your subquery; forms will issue
select col1, col2, col3 from (
-- this is your subquery
select col1, col2, col3 from tab1, tab2 where [....]
With Procedure in short you'd have a stored procedure which returns a ref cursor and the block will be populated by the ref cursor.
As for your question about the name: this actually should matter; the default is NULL which means that there needs to be a column which has the exact name as the item so in the above sample with table the item associated with your_table.col1 should be named col1. If it isn't the property should be named like the column. If this property also doesn't reflect the name this shouldn't work IMO.
cheers
Maybe you are looking for
-
when i upload to an online developing service like Snapfish OR when i try to order prints from IPhoto my photos are blurry. in snapfish they actually appear blurry and i get a low resolution warning and when ordering from IPhoto i also get the low re
-
Cannot insert Chinese character into nvarchar2 field
I have tested in two environments: 1. Database Character Set: ZHS16CGB231280 National Character Set: AL16UTF8 If the field type of datatable is varchar2 or nvarchar2, the provider can read and write Chinese correctly. 2. Database Character Set:WE8MSW
-
Download page for trial version of Photoshop and Lightroom Mac OS 10.6.8
Where can I find the download page for trial versions of Lightroom and Photoshop for Mac OS 10.6.8? It's so hard that Adobe has no contact form, no way I can see to contact them. The help is not helpful to me, it's more like an FAQ. So I'd also be in
-
How to create a "speed bump" page warning "you are leaving this site"
I do alot of banking sites. Due to complaince issues, they are required to include a warning before being sent to an outside website. Is there any way to do this using Dreamweaver... maybe behaviors? They simply need to have a warning statment, with
-
Putting a data point from answers on a map
I have the dumbest report in the history of the world in obiee that shows 1 row - State, Measure and Amount. Literally 1 row of data. I want to show that row on a map instead of a grid. The data is as follows. CA,REVENUE,1 I loaded the mvdemo data