Search found 86 matches

by vidpat
May 4th, 2005, 12:34 pm
Forum: Script requests
Topic: Autosave
Replies: 5
Views: 13165

Unfortunately the problem is that there is no timer/interrupt facility exposed through scripting. Also, there isn't a threading model that could be used to implement a crude polling approach. Thus, entering in to a loop will block until termination. In the case of an infinite loop, AE will appear to...
by vidpat
April 5th, 2005, 3:04 pm
Forum: Scripts Discussion
Topic: Setting a property vs calling a property's method
Replies: 6
Views: 12891

It is not uncommon for accessors and mutators to be implemented as functions even in languages that support properties. Although not necessary, perhaps Adobe chose this approach for consistency with user objects. Properties of user objects ("Function Objects" in the ECMAScript spec) are re...
by vidpat
April 3rd, 2005, 1:54 pm
Forum: Scripts Discussion
Topic: Great new scripting resource
Replies: 11
Views: 19701

The SDK takes a bit of getting used to. There are some areas that are well document and others that are hardly documented at all. Some of the APIs that are in C++ are being deprecated in favor of C while other suites in C are being newly wrapped in C++. You can write everything in C using the C++ an...
by vidpat
March 10th, 2005, 1:31 pm
Forum: Scripts Discussion
Topic: propertyValueType query
Replies: 5
Views: 11811

I'm curious as to why you need the actual value of the PropertyValueType constants. You'll still need to do a comparison. A switch statement could use the constants as in: switch (prop.popertyValueType) { case PropertyValueType.ThreeD_SPATIAL: str = "3D Spatial"; break; case PropertyValueT...
by vidpat
February 25th, 2005, 4:02 pm
Forum: General Scripts Library
Topic: Script UI Helpers
Replies: 2
Views: 27555

A while back I updated UILayout to provide more features and a more pleasing layout. The new and improved code should be compatible with any code using the previously available version. New features include flow breaks and text layout that fits to the string length. Since there is no way to access t...
by vidpat
February 25th, 2005, 3:44 pm
Forum: Scripts Discussion
Topic: best program to write scripts in?
Replies: 13
Views: 24522

You are welcome to download the syntax definition file at http://www.petertorpey.com/files/ae/scripts/aejsx.syn.

Peter
by vidpat
February 25th, 2005, 3:41 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122333

For those brave souls like Byron, I have put this version of the plug-in up at http://www.petertorpey.com/files/ae/TextInfo.aex . Windows only. As mentioned, it is buggy and doesn't work in most instances where I had hoped it would be useful. Try it on a non-text AV Layer for some interesting inform...
by vidpat
February 24th, 2005, 1:43 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122333

For the record, I took Shinjipierre's advice and wrote a plug-in that would return the actual width and height of a Text Layer... almost. The way Text Layers are implemented, the layer is actually the size of the comp and never moves. The text is then rendered onto that layer by the text engine. Thi...
by vidpat
February 7th, 2005, 2:44 pm
Forum: Scripts Discussion
Topic: readln() for a certain line
Replies: 2
Views: 8600

If all of the lines have have the same number of bytes or if line 11 (per the example) is always n many bytes from the start of the file, you could use seek(). Otherwise, readln() seems like the best approach. A little function goToLine() could be helpful: function goToLine(fileF /* open File object...
by vidpat
February 2nd, 2005, 12:14 am
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122333

Determining Width and Height of a Text Layer

Is it me or is this another item to add to the list of, "Text Layers don't Expose Much Functionality to Scripting": The width and height of a text layer reported in a script (or expression, for that matter) is the same as the width and height of the comp. If anyone has any ideas as to how ...
by vidpat
February 1st, 2005, 1:38 pm
Forum: Scripts Discussion
Topic: Adding meta-data to quicktime files
Replies: 14
Views: 27609

The extra arguments for open() are for AE's File object. In the AE Scripting Guide, the second and third arguments are optional "type" and "creator" codes (only honored on the Mac, of course).

Peter
by vidpat
January 30th, 2005, 6:27 pm
Forum: Scripts Discussion
Topic: best program to write scripts in?
Replies: 13
Views: 24522

TextPad does do syntax highlighting/coloring. There are many syntax definitions available on their website. I created a syntax definition file for AE scripts including the known objects, functions, and properties.
by vidpat
January 28th, 2005, 6:43 pm
Forum: Scripts Discussion
Topic: best program to write scripts in?
Replies: 13
Views: 24522

On Windows, I use TextPad. I have been using it for years for all sorts of programming tasks, with the exception of C/C++ and C# (for which I use VS.NET).

Peter
by vidpat
January 27th, 2005, 1:53 pm
Forum: Scripts Discussion
Topic: Adding meta-data to quicktime files
Replies: 14
Views: 27609

If the problem is only with the creator or file type, I believe that can be explicitly set with File.open() when the script file is being created. For example: <File>.open("w", "ttxt", "aplt"); Perhaps that would do the trick of getting applescript to execute the file. ...
by vidpat
January 25th, 2005, 7:03 pm
Forum: Script requests
Topic: Ftp after render
Replies: 20
Views: 52639

Often, much of what you see when using an FTP client from the shell is generated by the client as a human-readable description of the commands it is sending to the server or friendly interpretation of the server's response. What the server is actually sending is all that AE will see when reading fro...