Search found 705 matches

by Paul Tuersley
May 23rd, 2005, 3:44 am
Forum: Scripts Discussion
Topic: Scripting error message "Grouping level problem" .
Replies: 7
Views: 13869

This may not be the only reason, but the error can be caused by having a beginUndoGroup without a corresponding endUndoGroup.

Paul T
by Paul Tuersley
April 19th, 2005, 4:19 am
Forum: Scripts Discussion
Topic: Finding the name of the output file
Replies: 1
Views: 6544

You were pretty close, try this: app.project.renderQueue.item(1).outputModules[1].file.name and just for completeness, here's how you might have used the string methods to isolate the file name from the path: theFileString = app.project.renderQueue.item(1).outputModules[1].file.toString(); theIndex ...
by Paul Tuersley
April 14th, 2005, 2:10 pm
Forum: Scripts Discussion
Topic: Shifting a keyframe
Replies: 4
Views: 10097

This is the point in a topic where I often post Adobe's feature request page. http://www.adobe.com/support/feature.html There won't be many people asking for these scripting features but it's always worth a go.

Paul T
by Paul Tuersley
April 14th, 2005, 1:05 pm
Forum: Scripts Discussion
Topic: Shifting a keyframe
Replies: 4
Views: 10097

I think you're right, it isn't possible to shift a keyframe to another time. You might find some useful info in the last post of this topic on markers http://www.aenhancers.com/viewtopic.php?t=71 which are treated in pretty much the same way as keyframes. And I guess you'll also have to use the Keyf...
by Paul Tuersley
April 12th, 2005, 12:40 pm
Forum: Scripts Discussion
Topic: try...catch
Replies: 6
Views: 20811

I wrote this a while back to see if I could turn off the debugger from within a script if I was using try/catch. It seems to work ok. Paul T { function isDebuggerOn() { var debuggerSetting = app.preferences.getPrefAsLong("Main Pref Section", "Pref_JAVASCRIPT_DEBUGGER"); // return...
by Paul Tuersley
April 4th, 2005, 3:21 pm
Forum: Expression Discussion
Topic: Help please
Replies: 2
Views: 9496

Try this expression on the 3D layer's opacity property: distance = length(position, thisComp.activeCamera.position); linear(distance, 1000, 5000, 100, 0); length() calculates the distance between the 3D layer and the camera, then linear() converts the result. In this example the layer will be 100% o...
by Paul Tuersley
April 4th, 2005, 12:39 pm
Forum: Scripts Discussion
Topic: Setting a property vs calling a property's method
Replies: 6
Views: 13000

Well you can also do: setValueAtKey(keyframe, value) setValueAtTime(time, value) setValuesAtTimes(arrayOfTimes, arrayOfValues) So presumably it's done this way for consistency. As for expressions, firstly they aren't property values and secondly, none of the above methods would apply to expressions ...
by Paul Tuersley
March 18th, 2005, 4:43 am
Forum: Script requests
Topic: resize compositions
Replies: 7
Views: 17059

So how would you normally scale up the solid layers? Change the scale value, or select Solid Settings and change the size that way? How is the 'type' effect created? Sounds like it isn't using text layers, are you using masks or an effect like Basic Text? The reason I'm asking all this is that there...
by Paul Tuersley
March 17th, 2005, 2:01 pm
Forum: Script requests
Topic: resize compositions
Replies: 7
Views: 17059

Maybe I'm mistaken, but I was under the impression that what was needed was a script that will scale up the comps AND all layers within it from PAL WS to HD, but it looks like Byron's script just changes the Comp Settings. There is a script that comes with AE, accessible from the Demo Palette script...
by Paul Tuersley
March 13th, 2005, 5:01 pm
Forum: Scripts Discussion
Topic: modify text value from a "Basic Text" effect ?
Replies: 1
Views: 6767

I don't think there's any way to do that.

Paul T
by Paul Tuersley
March 13th, 2005, 11:24 am
Forum: Scripts Discussion
Topic: insert line into tekst file
Replies: 1
Views: 6880

I've found that the safest way to edit an existing text file is to read the whole file, change it, and then rewrite it. Here's an example of this: { // define a new file in same directory as the script. testFile = new File("readwritetest.txt"); // open file for writing testFile.open("...
by Paul Tuersley
March 13th, 2005, 2:49 am
Forum: Scripts Discussion
Topic: Setting a light layer's Light Type
Replies: 3
Views: 9045

I can't find any mention of it in the scripting guide. One workaround is to create a small support project containing one of each light type and get your script to import them. (can use this technique for text layers too).

Paul T
by Paul Tuersley
March 12th, 2005, 1:15 pm
Forum: Script requests
Topic: Autosave
Replies: 5
Views: 13360

To do this, the script would have to lurk in the background checking things at timed intervals and I'm pretty sure that isn't possible.

Paul T
by Paul Tuersley
March 12th, 2005, 1:10 pm
Forum: Script requests
Topic: Set Layer in/out points
Replies: 2
Views: 11758

Presumably you're talking about the [ and ] keys. Is it just for setting the in/out points or trimming them as well ( alt-[ and alt-] )

Writing a script that changes the keyboard prefs sounds easy enough. What lines would you change, and to what?

Paul T
by Paul Tuersley
March 12th, 2005, 1:00 pm
Forum: Script requests
Topic: Steadycam moving footage
Replies: 2
Views: 9640

There is a technique I use when I want to eliminate vibration from some footage while preserving the original motion as much as possible. First use Stabilize Motion to stabilize the shot, then from the resulting Anchor Point keyframes, select every tenth frame or so and copy/paste them onto the laye...