Search found 705 matches

by Paul Tuersley
October 3rd, 2012, 1:56 am
Forum: Expression Discussion
Topic: Complementary Colours
Replies: 2
Views: 10951

Re: Complementary Colours

In scripting/expressions colours are always defined in the range 0.0-1.0
by Paul Tuersley
October 3rd, 2012, 1:54 am
Forum: Scripts Discussion
Topic: How do I know Text's width ?
Replies: 2
Views: 8485

Re: How do I know Text's width ?

Check out the sourceRectAtTime method in the scripting guide. var bounds = app.project.activeItem.layer(1).sourceRectAtTime(activeItem.time, true); alert("top = " + bounds.top + "\rleft = " + bounds.left + "\rheight = " + bounds.height + "\rwidth = " + bounds....
by Paul Tuersley
September 30th, 2012, 4:26 am
Forum: Script requests
Topic: Select all abobe/below layers
Replies: 9
Views: 40907

Re: Select all abobe/below layers

Here's a script that will select all layers above a single selected layer. It would be pretty easy to adjust it to do different things. Really you need a script that presents a UI to offer different options, but it isn't really worth the effort. You can just use the Shift key to select a range of la...
by Paul Tuersley
August 16th, 2012, 4:49 pm
Forum: Scripts Discussion
Topic: Camera Iris Shape and Iris Rotation
Replies: 5
Views: 14254

Re: Camera Iris Shape and Iris Rotation

This script is very useful for finding the correct property paths:
http://www.redefinery.com/ae/view.php?i ... mePropPath
by Paul Tuersley
August 10th, 2012, 3:01 am
Forum: Scripts Discussion
Topic: Anyone had any luck with the wantReturn property? (scriptUI)
Replies: 1
Views: 7123

Re: Anyone had any luck with the wantReturn property? (scrip

Yes it's working for me. How are you using it? I've got:

Code: Select all

properties:{multiline:true, wantReturn:true}
by Paul Tuersley
May 17th, 2012, 9:13 am
Forum: Scripts Discussion
Topic: Stopwatch click scripting
Replies: 4
Views: 10759

Re: Stopwatch click scripting

That sort function looks about right, but obviously you should test it to make sure it's doing what you expect. I would wrap something like this in a loop afterwards to check the result: $.writeln(selectedLayers[x].index) Another way would be to just loop through all layers in the comp, checking if ...
by Paul Tuersley
May 17th, 2012, 2:08 am
Forum: Scripts Discussion
Topic: Stopwatch click scripting
Replies: 4
Views: 10759

Re: Stopwatch click scripting

Once you've applied the expression you can just read the resulting value, delete the expression then re apply that value. Something like: theProperty.expression = "my expression"; var result = theProperty.valueAtTime(0,false); // return preExpression value = false; theProperty.expression =...
by Paul Tuersley
May 10th, 2012, 11:57 pm
Forum: General Scripts Library
Topic: 3D to 2D ScreenSpace .1b
Replies: 5
Views: 21820

Re: 3D to 2D ScreenSpace .1b

It should be:

else if (selectedLayers.threeDLayer == false){
by Paul Tuersley
May 9th, 2012, 4:24 am
Forum: General Scripts Library
Topic: 3D to 2D ScreenSpace .1b
Replies: 5
Views: 21820

Re: 3D to 2D ScreenSpace .1b

You could either set up your onClicks this way: myPanel.butLink.onClick = function() { LinkOrBake(true); }; ////////////// function LinkOrBake(link) { if (link) { or you could query the text in the button that called the function: myPanel.butLink.onClick = LinkOrBake; /////////////////////////// fun...
by Paul Tuersley
May 1st, 2012, 7:50 am
Forum: Scripts Discussion
Topic: Scripting OutputModules for outputting image sequences
Replies: 12
Views: 21549

Re: Scripting OutputModules for outputting image sequences

You could always create some AE projects that just contain a comp and render queue item for each specific output module template and have those in a folder on your network accessible by the script. If the script can't find the required output module it can look for a project with the same name in th...
by Paul Tuersley
April 26th, 2012, 2:38 am
Forum: Scripts Discussion
Topic: Putting FootageItem into folders
Replies: 7
Views: 14514

Re: Putting FootageItem into folders

I have a feeling looping in reverse won't work here. That works in situations where you're looping through an index deleting things like keys, layers or footage, but in this case it is about moving things in the project window so I would think there's as much chance of messing things up if you loop ...
by Paul Tuersley
April 16th, 2012, 10:07 am
Forum: Expression Discussion
Topic: Checkbox
Replies: 2
Views: 15737

Re: Checkbox

You could do something like: if (thisComp.layer("Null 1").effect("Checkbox Control")("Checkbox").value) { 100; } else { 0; } The if statement tests if something is "true". i.e if (1 == 1) (if 1 is equal to 1), if (1 < 2) (if 1 is less than 2). The checkbox val...
by Paul Tuersley
April 9th, 2012, 3:14 am
Forum: Animation presets Library
Topic: Converting Presets
Replies: 3
Views: 32668

Re: Converting Presets

I have a script called OpenSesame which can be used to open AE projects in older versions, back to CS3. So you could apply the preset to a new project in your current version, use OpenSesame to export it, then reimport it into your earlier version of AE, select the keyframes, etc and save as a new p...
by Paul Tuersley
April 8th, 2012, 8:55 am
Forum: Scripts Discussion
Topic: !!!! strange result !!!
Replies: 3
Views: 8526

Re: !!!! strange result !!!

This will fix it:

File.decode(app.project.file.name)
by Paul Tuersley
April 5th, 2012, 2:01 am
Forum: Scripts Discussion
Topic: Putting FootageItem into folders
Replies: 7
Views: 14514

Re: Putting FootageItem into folders

My guess is that this could be due to the items' indexes changing when you move them. You're looping through app.project.items, but changing what's inside it during the loop. I'd suggest storing the item objects you find in another array and only moving them one you've looped through them all.