help with change precomp size(weight and height via script)
Hi guys, need help with change precomp size(weight and height via script), my problem in this... when i change comp size(weight and height) from AE GUI, AE change comp size from center composition,...
View ArticleSet the size of Solid layer by expression?
Hi! Is it possible to set the size like this? this_layer.width = 200; I need to keep my transform.scale untouched. Before this I used my custom drop-down menu and expression on Transform:...
View Articlesetting the position value of just one value
I'm trying to set just one value for a layers position attribue via scripting but I can't seem to change one with having to change all three. For example, I have the following...
View ArticleDynamically adding checkboxes: Problem w/.onClick()
I'm working on a script that finds a folder in my project named "compsRENDER" and then creates checkboxes for each comp and sets the text to the comp name - which works. I'm not sure how to handle the...
View ArticleHow import AE Shape paths and their Fills to Illustrator?
Hello, i had imported a few hundred Illustrator paths to After Effects, then used "Create shapes from vector layer" to make them editable Shape layer paths to then run scripts that equalize the...
View Articleimport data in After Effects
hello,is it possible to import data from other sources by using scripts in AE? I would like to generate a composition that uses a var "name" that would be taken in a list of names in a database or a...
View ArticleGetting the time of a particular keyframe
Hi There, I took a look at the Scripting Guide, but after a cursory search + read couldn't find the answer to my question there, so I thought I would reach out here. How can I get the time value for a...
View ArticleScriptUI Panel .onClick help
Here is my code. function myScript(thisObj) { function myScript_buildUI(thisObj) { var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Align 3D Layers", undefined,...
View Articlepopulating dropdownlist in ScripUI
I was shown how to poplate the .name value of an AVlayer selection in to a drop down list with this method. var userSelection = app.project.activeItem.selectedLayers;var selectionNames = [];for (var...
View ArticlereplaceWithPlaceholder 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 ArticleScript changes in After Effects CC
Hey guys, does anyone know ahout the script changes in the next version of After Effects?Any details?
View Articleupdating 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 ArticleFile open/exists problems under Mavericks
If I try to open a file under Mavericks, it says Path is not a valid path even if the files exists for real. I even tried app.project.file.exists for an opened project, and it return false. Anybody...
View Articlegetting 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 ArticleHow 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 Articleupdating 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 ArticlePossible 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 Articleswitch 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 ArticleScript '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. Also, is it...
View ArticleDoscript with AE CC
Hi, I am having a few customers getting a bug with a script is sent to after effects CC using osascript : Expected end of line but found identifier (-2741) It seems it is only the AE CC users that get...
View Article