Search found 705 matches

by Paul Tuersley
December 19th, 2004, 4:36 pm
Forum: Scripts Discussion
Topic: type layer?
Replies: 1
Views: 7764

Here's a snippet from one of my work in progress scripts that should point you in the right direction, let me know if you need any more help. Paul T if (curLayer.matchName == "ADBE Camera Layer") { alert("it's a camera"); } else { if (curLayer.matchName == "ADBE Light Layer&...
by Paul Tuersley
November 8th, 2004, 4:35 am
Forum: Expression Discussion
Topic: Help me find the center of a triangle
Replies: 2
Views: 9976

Wouldn't this just be a case of adding all the points together then dividing by the number of points, no trigonometry required? For example: point1 = thisComp.layer("Null 1").position; point2 = thisComp.layer("Null 2").position; point3 = thisComp.layer("Null 3").positio...
by Paul Tuersley
November 7th, 2004, 11:21 am
Forum: Paul Tuersley's Scripts
Topic: pt_ShiftLayers
Replies: 8
Views: 60930

Stagger Selected Layers

On Lloyds suggestion, I've adapted my Shift Selected Layers script into this one that lets you stagger the in-points of all selected layers.
by Paul Tuersley
November 5th, 2004, 8:20 am
Forum: Scripts Discussion
Topic: Convert Audio to Keyframes
Replies: 1
Views: 7731

No, I don't think there is.
by Paul Tuersley
October 27th, 2004, 9:57 am
Forum: Scripts Discussion
Topic: Branching Function
Replies: 1
Views: 7426

Well the first thing I noticed is that you don't have a 'var' before your i=1 in your loop through the layers, so there's a fair chance that it's losing your first i's value when you recurse back into the function. Personally I find recursive functions a bit tricky too, so if you're still having pro...
by Paul Tuersley
October 25th, 2004, 8:25 am
Forum: Scripts Discussion
Topic: Compify
Replies: 6
Views: 14568

Basically I just removed the //'s from the line that created the Cancel button and the suffix thing started working properly. Regarding the Cancel button, if buttons are called 'ok' or 'cancel' they are automatically recognised as those particular buttons (I don't think you even need the {name: &quo...
by Paul Tuersley
October 23rd, 2004, 2:50 am
Forum: Scripts Discussion
Topic: Compify
Replies: 6
Views: 14568

Did you manage to figure this out? I spent some time on the script last weekend but couldn't work it out either. It didn't seem like it ever put the suffix on the new comp name. First I changed the default suffix from nothing to "test" using: dlg.sufEt = dlg.add('edittext', [55,5,195,25], ...
by Paul Tuersley
October 9th, 2004, 7:59 am
Forum: Scripts Discussion
Topic: query if properties value index is valid
Replies: 1
Views: 8422

You can check for the type of property using .propertyValueType. Here's a script that goes through all layers, listing each effect's properties and propertyValueTypes. The two that you're probably trying to avoid are NO_VALUE and CUSTOM_VALUE. See page 143 of the scripting guide for a full list of p...
by Paul Tuersley
October 9th, 2004, 7:07 am
Forum: Scripts Discussion
Topic: Palettes and live updates?
Replies: 1
Views: 7862

I made some enquires on this but came up blank I'm afraid. I don't think it's possible to create a script that can monitor what's going on. The only thing it can do when 'in the background' is monitor user interaction with the palette created by that script Also, this thread http://aczet.free.fr/php...
by Paul Tuersley
October 9th, 2004, 6:52 am
Forum: Scripts Discussion
Topic: Importing images without user interaction
Replies: 3
Views: 9798

Did the SupressDialog methods do anything?

I've been told by those that should know that there is no way to skip the dialog when using ImportAsType.FOOTAGE, but that it has now been filed as a feature request.

Paul T
by Paul Tuersley
October 9th, 2004, 6:35 am
Forum: Scripts Discussion
Topic: Select a Layer
Replies: 3
Views: 11686

Here's a script that checks all layers in a comp to see if they've got the Levels effect applied. If Levels is found, that layer will become selected in the Timeline window. It sounds like the ".selected = true" bit is what you were looking for. Paul T { // make sure a comp is selected var...
by Paul Tuersley
October 9th, 2004, 6:02 am
Forum: Scripts Discussion
Topic: What scripts do you need?
Replies: 12
Views: 23261

While you could write a script to do this, you wouldn't be able to get it to interact with the box creator lite assistant, so you'd have to recreate the box creator functionality in your script. It wouldn't be that hard to do, but you'll end up recreating that existing functionality, just to save yo...
by Paul Tuersley
September 26th, 2004, 5:14 pm
Forum: Scripts Discussion
Topic: Motion Tracking script
Replies: 2
Views: 9792

Hopefully this will help. I've included two techniques in this script. If you don't mind selecting the Feature Centre property before running your script, you can just use the bit near the start to access any currently selected property. The main bulk of the script is set up to search through all se...
by Paul Tuersley
September 26th, 2004, 4:05 pm
Forum: Scripts Discussion
Topic: Preferences File
Replies: 7
Views: 25694

This might be useful as reference, some lines I've pulled out of a script that stores and retrieves user defined prefs. // this bit checks to see if pref already exists var userName = "" if (app.settings.haveSetting("FilmToQuicktime_prefs", "UserName")) { userName = app...
by Paul Tuersley
September 16th, 2004, 12:22 pm
Forum: Scripts Discussion
Topic: Accessing Width and Height from an output module
Replies: 1
Views: 7736

It doesn't look like there's a straightforward way of doing this. If the output modules are always going to be taken from the templates, you can probably find out the name of the template applied and work it out based on that. Otherwise, I reckon about the only thing you can do is render out a frame...