Search found 30 matches

by Alan Eddie
November 7th, 2023, 6:35 am
Forum: Scripts Discussion
Topic: Check if selection is a project item or a layer
Replies: 7
Views: 17982

Re: Check if selection is a project item or a layer

For anyone coming back to this, I found this thread really helpful. I added removing the source dummy null, so no accumulation in the project. Also - returning the original layer selection as making the null would disrupt the original selection. function ael_activeProjectOrComp() { //messes up selec...
by Alan Eddie
October 24th, 2023, 2:05 am
Forum: Expression Discussion
Topic: Expression Editor hotkeys ?
Replies: 0
Views: 8161

Expression Editor hotkeys ?

Hello!
Just wondering if there is any documentation on hotkeys - for the expression editor, I can't find any info on it. I have accidentally discovered a couple of hotkeys... like one to have multiple carets!

Thanks.

by Alan Eddie
May 1st, 2013, 2:25 am
Forum: Scripts Discussion
Topic: Creating Masks with Responsive Vertices
Replies: 3
Views: 9436

Re: Creating Masks with Responsive Vertices

var newMask = mySolid.Masks.addProperty("Mask"); var myMaskShape = newMask.property("maskShape"); var myShape = myMaskShape.value; myShape.vertices = [a,b,c,d]; myShape.closed = true; myMaskShape.setValue(myShape); a,b,c,d are 2 element arrays. So it's just mathematics getting t...
by Alan Eddie
April 30th, 2013, 10:16 am
Forum: Scripts Discussion
Topic: saving animation presets
Replies: 2
Views: 9413

Re: saving animation presets

//Snippet from one of my scripts, using the executeCommandID method (I know, not the best solution) function exectuteCommandID(theCommand){ app.executeCommand(app.findMenuCommandId(theCommand)); } function saveUsualFXPreset(){ alert("1.Please select the effects you want to save.\n2.Save the pre...
by Alan Eddie
April 30th, 2013, 10:11 am
Forum: Scripts Discussion
Topic: check footage item as sequence
Replies: 4
Views: 11231

Re: check footage item as sequence

Can you just perform more specific tests?


if((items instanceof FootageItem) && (items.mainSource instanceof FileSource)
&& (items.mainSource.isStill == 0) && (items.hasVideo == true)&&(items.footageMissing == true)){//do stuff...}
by Alan Eddie
April 30th, 2013, 10:03 am
Forum: Scripts Discussion
Topic: Creating Masks with Responsive Vertices
Replies: 3
Views: 9436

Re: Creating Masks with Responsive Vertices

Something like this: as a 2 element array: ?
[app.project.activeItem.width/10, app.project.activeItem.height/10, ]
by Alan Eddie
October 10th, 2012, 2:25 pm
Forum: Scripts Discussion
Topic: Trimming Footage in Layer
Replies: 5
Views: 15179

Re: Trimming Footage in Layer

Great - couldn't figure out what the story was. I have it packaged in a function and works fine, just thought there was something that I wasn't aware of.....

Will log it with Adobe in the morning, thanks Paul.
by Alan Eddie
October 10th, 2012, 1:00 pm
Forum: Scripts Discussion
Topic: Trimming Footage in Layer
Replies: 5
Views: 15179

Re: Trimming Footage in Layer

Hi there, I am having trouble understanding this problem. I have an AVLayer - startTime = -20, inPoint =20, outPoint =100; The duration of the source item is say 500; So I run this... app.project.activeItem.selectedLayers[0].inPoint=50; First run - does it as expected. second run - starts moving the...
by Alan Eddie
October 10th, 2012, 7:17 am
Forum: Scripts Discussion
Topic: Feedback wanted: Fit Layers To
Replies: 6
Views: 14018

Re: Feedback wanted: Fit Layers To

Not that I am an expert - these guys explain it much better than I could.

http://stackoverflow.com/questions/1111 ... sures-work

http://davidbcalhoun.com/2011/what-is-a ... javascript
by Alan Eddie
October 10th, 2012, 4:50 am
Forum: Scripts Discussion
Topic: Feedback wanted: Fit Layers To
Replies: 6
Views: 14018

Re: Feedback wanted: Fit Layers To

Hi there, don't forget to package the global vars in an object or to do some kind of closure. I was making that mistake for a while - safer to avoid them.
by Alan Eddie
October 9th, 2012, 2:16 am
Forum: Scripts Discussion
Topic: Feedback wanted: Fit Layers To
Replies: 6
Views: 14018

Re: Feedback wanted: Fit Layers To

Also your script may want to interpret AVItems if they are not active during the work area and their length is not long enough to fill the work area or reach the current time. (Perhaps the in jumps to the work area start or something like that).
by Alan Eddie
October 9th, 2012, 2:13 am
Forum: Scripts Discussion
Topic: Putting FootageItem into folders
Replies: 7
Views: 13968

Re: Putting FootageItem into folders

You have to remember that a folder is considered an item too. When I was making TidyUp (script for putting stuff in folders, similar to what you are doing here). It took me an age to realize that the index count was actually changing in the project panel. I was assuming that folders were not objects...
by Alan Eddie
October 9th, 2012, 2:03 am
Forum: Scripts Discussion
Topic: PROGRAMMATICALLY Change Shortcut Keys. Possible?
Replies: 1
Views: 7126

Re: PROGRAMMATICALLY Change Shortcut Keys. Possible?

Hi there you need to google keyedup.jsx and if you take a look at my video on the script 'Isolate'

http://www.youtube.com/watch?v=1dAcLEMcgpU

It shows at the end how to use keyEdUp to assign keyboard shortcuts to scripts in After effects. You can assign up to 20 to keys.
by Alan Eddie
October 9th, 2012, 1:48 am
Forum: Scripts Discussion
Topic: Feedback wanted: Fit Layers To
Replies: 6
Views: 14018

Re: Feedback wanted: Fit Layers To

Works well, there is a short cut for the current time - alt+] as far as I know.
You could add in 'trim to layer above' and below? Lloyd Alvarez has a similar script on aescripts.com but if
you have gone that far it would be no problem to you.
by Alan Eddie
October 8th, 2012, 2:58 pm
Forum: Scripts Discussion
Topic: Script to reveal property
Replies: 1
Views: 7245

Re: Script to reveal property

I think all the scripting elements are there to do it....don't think there is a shortcut. There is a property.elided function // property.expressionEnabled//property.isTimeVarying etc. So you would be able to differentiate between animated and just expression animated. See page 118 of the scripting ...