Search found 86 matches

by vidpat
July 11th, 2007, 10:38 am
Forum: Scripts Discussion
Topic: script for this?
Replies: 4
Views: 10915

If you don't need to be able to edit the text again, I believe you could use the discovery of the undocumented executeCommand() to convert a text layer to masks and then have the script move each mask to its own layer. The tricky part here would be for glyphs that are composed of more than one mask.
by vidpat
May 28th, 2007, 11:58 am
Forum: Scripts Discussion
Topic: setProxy problem --- "Expected: )" ?
Replies: 2
Views: 9260

setProxy() expects a single argument of type File. As written, there are two tokens in the parameter list (a bare word and a string literal). The parser is expecting the list to end with a ')' after the token 'file', which itself doesn't mean anything. I believe you are looking for this, instead: se...
by vidpat
May 25th, 2007, 11:34 am
Forum: Scripts Discussion
Topic: ExtendScript / JavaScript implementation - Classes???
Replies: 3
Views: 13422

JavaScript is an interesting language in this regard. I haven't seen any 2.0 implementations of the language in the wild. Yes, it sometimes feels "nasty" to use dynamic typing, but it also has its advantages. I find myself using some sort of Hungarian notation to make up for the lack of ty...
by vidpat
April 24th, 2007, 10:52 am
Forum: Script requests
Topic: Is this possible?
Replies: 3
Views: 10640

Unfortunately, this is not quite as easy as it sounds. If you go through the mathematics of it, the problem is hidden somewhere in there: For any four points in the image plane, there are at least two solutions for the distance of each of those four points along the vector to the camera, thus severa...
by vidpat
March 31st, 2007, 4:48 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122422

Fascinating. I'll have something to look forward to whenever I get around to upgrading from 6.5.

Am I to presume this works equally well when the text in the layer extends beyond the bounds of the comp?
by vidpat
January 30th, 2007, 2:35 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122422

Yes, TextInfo probably will return the height and width of the entire comp when you apply an effect that renders to the entire comp area if TextInfo comes later in the effects stack. Possible workarounds: place TextInfo first in the effects stack, apply the other effect(s) to an adjustment layer, us...
by vidpat
January 16th, 2007, 12:56 am
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122422

Darkmoon_UK: I haven't been doing very much work in AE lately, so I haven't looked at it in a very long time and I had just thrown it together on a whim. I suppose I ought to look at it seriously, at some point. I remember some odd behaviors, like not being able to edit the text reliably with my plu...
by vidpat
January 15th, 2007, 5:41 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122422

Yes nab, that is essentially what my plug-in does, hence the limitation about text larger than the comp size or off the edge of the comp. I had thought about writing a plug-in that would get the masks from the text and then find the max and min verts. That might work, but probably would be unduely c...
by vidpat
December 11th, 2006, 12:39 pm
Forum: Scripts Discussion
Topic: Re-using a named solid/comp
Replies: 4
Views: 11208

The paramter to add() should be a reference to the object, not the string of its name. So, for that third line, try:

var newSolid = tempComp.layers.add(tempSolid);
by vidpat
December 10th, 2006, 1:00 am
Forum: Scripts Discussion
Topic: Re-using a named solid/comp
Replies: 4
Views: 11208

In my VolumeLight.jsx script, I wrote a little function that probably could be tweaked to fit your purpose: addBlackSolid(). Essentially, this just looks for an existing solid that meets the specs I needed, and if it finds it, it adds it to the given composition. Otherwise, it creates the needed sol...
by vidpat
November 9th, 2006, 11:02 am
Forum: Scripts Discussion
Topic: Scripting Feature Requests For Next Release!
Replies: 20
Views: 37204

Two words: Text Properties.
by vidpat
November 7th, 2006, 10:57 am
Forum: Scripts Discussion
Topic: Scripting Feature Requests For Next Release!
Replies: 20
Views: 37204

Does my FTPConnection from a while back help at all? It could stand some reworking, surely, and there is some functionality that I haven't gotten around to adding. I'm not sure what my time will be like, but let me know if there are any suggestions or requests. (Also note that I'm still on 6.5.)
by vidpat
September 2nd, 2006, 1:19 am
Forum: Script requests
Topic: Randomizing the mosaic effect or scrambling a mask (ie face)
Replies: 1
Views: 7873

Unfortunately, AE's native scripting capabilities do not provide access to pixels. Of course, a plug-in could be written to achieve the effect you desire or a third-party tool (i.e. Profound Effects' Useful Things) might help. Based on the description of the effect you wish to achieve, I think that ...
by vidpat
August 25th, 2006, 2:06 am
Forum: Script requests
Topic: accessing points on a spline
Replies: 1
Views: 7656

Well, a script would not be able to do this dynamically. That would require an expression, but expressions cannot access mask vertices, unfortunately. You could write a script that would generate position keyframes for the layers once the mask has been animated. I'll refer you to my CreateShape scri...
by vidpat
July 5th, 2006, 12:19 am
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122422

The plug-in is actually deceptively simple and I still find it to be of little practical use. I can provide the source if you (or someone else) would like to build it for a Mac. I was hoping for improved scripting support for Text Layers in AE7. While there are many other advantages to 7, I think th...