Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Browsing all 2143 articles
Browse latest View live

getting number of 3d layers in a selection

I've been trying variations of the follwing code - var userSelection = app.project.activeItem.selectedLayers;var num3d = [];for (var j=0; j<userSelection.length; j++) num3d[j] =...

View Article


updating dropdown when user selects.

I have a variable that takes a users selection with the following code. var userSelection = app.project.activeItem.selectedLayers; I'd like this variable's array to change automatically if the user...

View Article


replaceWithPlaceholder method throwing char limit error

Hey Everyone, Long time lurker first time poster...I wrote a script to replace my selected footage items with placeholders, but when i run it on footage items with particularly long names, I get an...

View Article

Finding Start Time of Footage

I'm trying to get the starting timecode of footage via scripting. The only way I can think of doing this is using the "New Comp from Selection" app.executeCommand to create a comp. Then I can use...

View Article

How to get the startTime attribute to line up layers on whole frames

I'm trying to use startTime to position layers in time. When trying to do this in comps at non-whole framerates such as 23.976 or 29.97 then the layers never quite align properly to the whole frame....

View Article


updating dropdown list

Hi have a dropdownlist that takes its content from a users layer selection in the timeline when the script is run. However, I'd like the dropdownlist to update if the user makes a new selection.ie. The...

View Article

Possible to execute code after project finishes loading?

Hi There, Is there a way to execute code immediately after AE has completed loading a project?  Thanks,Arie

View Article

switch case: Must use string value?

in the example below I have two items in a switch case. The first one works and the second doesn't. In the second one I tried using a variable to concatinate the string for the case. For some reason as...

View Article


Script 'Working Space' - sRGB

Is there a way to set working space via script.  Ultimately I want to set it to sRGB.  I've found attributes on the project object for linear blending and 32 bits, but not working space. Thanks, Justin

View Article


Loading “external library” get “I/O error” in mac

I just discovered the "external library" in extendscript. So I opened up the "samplelib" example in Xcode 5, update the base sdk to 10.9 and buit it(the project file is very old, it's for xcode 2.4 and...

View Article

Is it possible to loop through items/layers and change the color overlay?

Is it possible to loop through items/layers and change the color overlay? I can get select layers but am unsure how to loop through and change the color overlay. I am using...

View Article

Possible to script the curves effect?

Hello, I'm wondering if it's possible to script the curves effect.  I get a 'property not implemented' error when I attempt to do so.  I'm guessing this is because this effect has no scripting...

View Article

Looping through layers and selecting layer by name?

I am trying to find a layer by name and loop through the selections. function projectItem(name){          var items = app.project.items;          i = 1;          while (i <= items.length) {...

View Article


ExtendScript Toolkit - Object Model Viewer

Hi all, I know there's not really a way around this but I'm curious if anyone knows why the Object Model Viewer in ExtendScript Toolkit doesn't have After Effects Object Model in the Browser dropdown?...

View Article

checking perf of a function or anything else

Is there a way to check how long a function takes to execute? maybe some type of timer? or maybe getting the system time before and after the function and subtracting the two values? Overall I am just...

View Article


How can I duplicate a FootageItem object via scripting?

Hi There, I am trying to understand why I cannot duplicate a FootageItem object in the same manner as a CompItem object.  For example, if I am iterating through a composition and encounter a layer that...

View Article

Multiline text alignment in UI

Hi guys. Newby here. Sorry if this is silly questtion, but I am getting bold solving this with no prevail. I have a multiline text. But it's aligned to the left. Any way to center align it?...

View Article


Choose new active layer?

How do you choose a new active item? item(1).select?  or is there a different script?

View Article

remove ListBox item's icon?

I'm trying to remove the listbox item's icon or image, but nothing seems to work?! What am I doing wrong?     var w = new Window ("window");    lb = w.add ("listbox", [0,0,100,150], ["item1", "item2",...

View Article

Saving plain text on a mac (Keyboard shortcuts file)

Hi there perhaps some mac users can help me... I am manually editing the keyboard shortcuts file in TEXT edit on a mac (Im a pc user). I open the file as plain text  all the rich text stuff turned...

View Article
Browsing all 2143 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>