Search found 28 matches

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

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 the values.. from the...
by Alan Eddie
April 30th, 2013, 10:16 am
Forum: Scripts Discussion
Topic: saving animation presets
Replies: 2
Views: 5796

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 preset a...
by Alan Eddie
April 30th, 2013, 10:11 am
Forum: Scripts Discussion
Topic: check footage item as sequence
Replies: 4
Views: 7048

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: 6105

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: 9739

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: 9739

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: 8390

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: 8390

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: 8390

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: 8631

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: 4847

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: 8390

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: 4806

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 ...
by Alan Eddie
October 7th, 2012, 9:52 am
Forum: Scripts Discussion
Topic: Progress Bars and User Updates
Replies: 10
Views: 16200

Re: Progress Bars and User Updates

Yes, using the update() method. It's so strange, seems to work when it likes. On testing - works about 60 percent of the time, other times just jumps from 0 to 100 percent. Anyway it's no big deal there are other ways around it. I tried exiting the main process and running the update in a separate f...
by Alan Eddie
October 5th, 2012, 3:28 am
Forum: Scripts Discussion
Topic: Progress Bars and User Updates
Replies: 10
Views: 16200

Re: Progress Bars and User Updates

Was there any update on this issue for CS6? On win7 works sometimes, then not others (in panel, haven't tested window...). Thanks. Alan.