Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting

Add a Layer Style (Stroke)

Hi guys, I trying to add a Layer Style Stroke width extendScript.i'm trying this code but it doesn't work. here is my code:var layer = app.project.item(1).layer(1); layer.property("ADBE Layer...

View Article


Image may be NSFW.
Clik here to view.

How does one install AE Adobe ExtendScript toolkit?

I'm new to AE and I've just learned that I must install the Adobe ExtendScript toolkit before I can begin working with a plugin.  I'm not finding any helpful information regarding the toolkits for this...

View Article


ScriptUI Edittext font/color

I've used the code in the doc: e.graphics.font = ScriptUI.newFont ("Letter Gothic Std", "Bold", 30); e.graphics.foregroundColor = e.graphics.newPen (e.graphics.PenType.SOLID_COLOR, [1, 0, 0], 1);...

View Article

Image may be NSFW.
Clik here to view.

need help with open folder (in Explorer) and click on Toggle Transparency Grid

hi guys, can i with Extended script enable Toggle Transparency Grid ? i try using app.executeCommand( app.findMenuCommandId(Toggle Transparency Grid));and nothing.  and also can i some how open folder...

View Article

Image may be NSFW.
Clik here to view.

License framework for jsx files

Hi friends,  I have a framework for a license system that is well suited for jsx files.  With this framework you can restrict users to use your script (for example, one license for one user), and you...

View Article


Image may be NSFW.
Clik here to view.

how to scale while keeping the layer center position

when scaling layer up or down its position changes. how can i compensate for this shift keeping its relative position?sample code: function scale1(a,b,c){var x2s =...

View Article

Find image path mac

Hey Guys, I’ve been trying to use this line of code to find out what the specific path image is on mac. I’ve not having any luck (an error on my part i'm sure) and would love someone to give me an...

View Article

how to freeze frame?

how to i set layer to freeze frame at time?  if there is no direct acess to it can time remap be used somhow? function timeremap1(a,b,c,d){     var comp = app.project.item(2);      var layer =...

View Article


Image may be NSFW.
Clik here to view.

app.project.renderQueue.queueInAME(true)

Does anyone know if it's possible to pass settings as well? Whatever the last setting was used on Media Encoder is the setting it will use. Otherwise this feature is brilliant.

View Article


Image may be NSFW.
Clik here to view.

Embedding one ScriptUI into another ScriptUI - #include? (AE ExtendScript)

Hi! I'm trying to combine two ScriptUIs. I have one main "dock" UI panel for users, and I have another ScriptUI that I'd like to embed in another tab of this main dock.When I use #include or $evalFile,...

View Article

Image may be NSFW.
Clik here to view.

How to handle very big variables.

Hello. I am writing a script that handles some very big variables. Those variables are not used at the same time, you can only choose one at a time. At the moment they are all grouped in an array(5 to...

View Article

Image may be NSFW.
Clik here to view.

Executing a button click from a script

Hi all! I'm working on a project which uses Trapcode Form, and need to activate a UI button ('Apply') in order to generate keyframes and apply the effect:  I've isolated the 'Commands' property object...

View Article

Controlling Solo layers across multiple compositions

Hey there, I was wondering whether someone could help with this.  I have a large project which is running very slowly because of the number of precomps I'm having to work with. In a bid to tackle this...

View Article


Running Script File without UI from command prompt

Without getting into too much unnecessary details, I have a script I wrote that opens some files, changes a few things, and saves it as a new file.  That is the basics of what it does.  Nothing too...

View Article

Image may be NSFW.
Clik here to view.

Modify Slider Range with Script?

Hi crazy people ! Can anyone tell me if it is possible to modify the range value of an Expression Control / Slider Control using script?I'm getting change the value of the slider, but I can not find...

View Article


Image may be NSFW.
Clik here to view.

Need help in writing a script to import Rotoscoping mask

Hello,  I am looking to perform rotoscoping on one of my videos. I have found Clearvid.io online service that performs rotoscoping. They provide the points of the resultant masks of rotoscoping in a...

View Article

Image may be NSFW.
Clik here to view.

Script UI - EditText

Hi friend, I have a script with "EditText" inside, and I want to changethe writing direction (of the default) - from left to right to right-to-left. I can do this manually (by right-clicking on...

View Article


Image may be NSFW.
Clik here to view.

Getting layer animation curve maxPoint

I am writing a script that adjusts the size of a composition based on the size and positions of its content. The script takes into account the animated layers, measuring in each keyframe the bounds of...

View Article

Image may be NSFW.
Clik here to view.

how to register access to the properties of the effect ID Matte through AE...

Good afternoon...Trying to record the settings for the effect ID Matte. How to switch property Aux.Cannel via AE ScriptingFor example, I want to switch to ID Material...

View Article

Image may be NSFW.
Clik here to view.

how to register access to the properties of the effect Camera Lens Blur...

Good afternoon...There are 2 layers in the scene. The second layer is the map Z depth or ( app.project.item(1).layer(2).name = "Z depth"Trying to record the settings for the effect Camera Lens Blur....

View Article

how to loop time in the middle of motion

exmmple of motion would be a a layer coming in from the left doing a circle in the center then going out to the right. lets say i wanted to loop the part in which it circles how would i do that? only...

View Article


Image may be NSFW.
Clik here to view.

prevent duplicate palettes when calling $.evalFile

Hello, Is it possible to have an $.evalFile check if a palette is already open, and if so, switch to it instead of spawning a new one? I'm calling up various utility panels from a central hub ScriptUI...

View Article


Image may be NSFW.
Clik here to view.

adding an expression to the script

Good afternoon Trying to add expression to script. String that causes an error------------------------------------------------------------------------------------------...

View Article

Image may be NSFW.
Clik here to view.

how do you position buttons in a gui?

i have a dockable gui with buttons. only way i know how to contorl position of buttons is to load them in differnt panels and have th listed top to bottom. is there any more percise way?   example...

View Article

Read/Write File in Extenstion

HiHow Can Create Or Read a File XML or etc whit JavaScript or etc in Extenstion? And How Can Read XML File in Extension ?

View Article


Image may be NSFW.
Clik here to view.

afterfx command line "restores" maximized window - any way to duplicate...

Hi all, I am controlling After Effects CC from another application by invoking JavaScript files from the command line. But the command *always* restores the maximized window of After Effects. That is,...

View Article

Image may be NSFW.
Clik here to view.

saveSetting to all AE versions at once

Hello guys, How can I saveSettings to all After Effects versions at once? Right now I am using this command to write:app.settings.saveSetting("ScriptName","Pref_name","someVlaue"); And This command to...

View Article

Image may be NSFW.
Clik here to view.

Determining Layer with Freeze Frame

Hi, I have a script where I want to loop through all the layers in a comp and determine which ones have a Time->Freeze Frame set.  I've gotten as far as determining that layer.timeRemapEnabled ==...

View Article

Image may be NSFW.
Clik here to view.

Is it possible to run jsx script without GUI on macOS.

In the windows OS, it is possible to run the external jsx script using afterfx.exe without opening the GUI.But in the macOS, I can't find the way to run the jsx script without GUI. Some articles...

View Article



Image may be NSFW.
Clik here to view.

Script writing to setup graphic layer's length to be the same as an audio...

Hello everyone, I'm new to scripting and new to this forum, so my apologies if this has been asked somewhere- I tried to search but my inquiry is quite specific and i couldn't find anything (feel free...

View Article

precompose crashes.

Hello, I am trying to precomp the 1st layer of the comp using ExtendScript. I do something like this: var comp = app.project.activeItem.layers.precompose([1], "new precomp", true); comp.width = newW;...

View Article

Image may be NSFW.
Clik here to view.

Text Path set

Hey its me again so I am creating a text, and applying a mask on it.now i want the text to follow the path,using the path options(and do it automatically).this is the code i have that didn't work:...

View Article

Image may be NSFW.
Clik here to view.

After Effects error: Can not “set value” with this property, because the...

I tried to find solution for this error in the Adobe Forum & Google too, but it didn't help in following situation. I am getting the error mentioned in the Question for different scenarios. 1: When...

View Article


Image may be NSFW.
Clik here to view.

Copy layer to another composition

Hi all, I am trying to import a specific layer from one AE project to another.I am able to import AE project and find a composition and add it to where I want with:...

View Article

Image may be NSFW.
Clik here to view.

Automating the video file in a comp based on the comps name

I am working on a project where I have footage of hundreds of trees (exciting I know), a wide and a close up of each. I need to output a comp containing 30 seconds of the wide followed by 30 seconds of...

View Article

Image may be NSFW.
Clik here to view.

Why doesn't app.fonts work in AE?

In this discussion at stack overflow it shows you can find the fonts available to Photoshop by looking at the app.fonts property.  But of course that doesn't work in After Effects because Adobe. Is...

View Article


Image may be NSFW.
Clik here to view.

ButtonColor,Picker and save prefs

Hello everone, I'm trying to make a button and change his color when i click on it,using a color picker function i found.its works,when i click,i can choose a color and then my button turn with the new...

View Article


Image may be NSFW.
Clik here to view.

get value of layer controller in aftereffects

Hi,i need to get value of layer controller with script, since aftereffects 2018 layer controller has 2 drop downs, first drop down shows all layers, second drop down shows [effect, mask, effect &...

View Article

Image may be NSFW.
Clik here to view.

I'm looking for a way to animate a json file over time

So i'm looking for a way to animate the source text of a file so that it can reference three fields of a JSON file (name, time, and duration). I want "name" to update the source text at "time" and stay...

View Article

Image may be NSFW.
Clik here to view.

run powershell commands using system.callSystem()

Has anyone been able to invoke powershell commands using system.callSystem()? Here's what I've triedvar response = system.callSystem("powershell.exe /command \"& { gci }\"");alert(response);if I...

View Article

I am a student looking for a tutor who could teach me Adobe Script Writing.

I am a student looking for a tutor who could teach me Adobe Script Writing.I am trying to create to re-create Rovio's Internal Rigging Extension for a personal purpose.Hand Drawn Animated Character...

View Article


Add Comps with specific name to render queue

Hey, i am new to scripting and i try to make a script which adds comps that start with a specific name to the render queue.For example: I would like to add all the comps that start with the name "ET_"...

View Article

Image may be NSFW.
Clik here to view.

How do I find the postscript names for the installed fonts on Windows

I can get a list of the installed font families and available styles on Windows with this powershell$folder="$env:Windir\fonts\";  $objShell=New-Object-ComObject Shell.Application;...

View Article


Image may be NSFW.
Clik here to view.

Add line break in textbox

Hi there, i am quite new to scripting and I am looking for a way to add line breaks in the text in textboxes which are then transferred to the text layers in a comp. So I created a UI with several...

View Article

Image may be NSFW.
Clik here to view.

Determine if footageItem is a png/jpeg sequence

Is it possible to use scripting to determine if a FootageItem is a png or jpeg sequence?  I can make the distinction between a static image and a video by the frameRate attribute of the FootageItem (0...

View Article


Image may be NSFW.
Clik here to view.

Python and After Effects Scripting on Windows

So I recently stumbled across this: GitHub - lohriialo/photoshop-scripting-python: Scripting in Photoshop is used to automate a wide variety of repetitive t… As well as this here (somebody else has...

View Article

Image may be NSFW.
Clik here to view.

Reveal Path of selected Property

Hi guys! How to know the Path to the selected property? //var sL=app.project.activeItem.selectedLayers[0].selectedProperties[0];alert(sL.name);// As Above expression gives out selectedProperty Name.How...

View Article

Image may be NSFW.
Clik here to view.

os.callSystem - Call a specific function

Hi guys, I know how to call the AE and after to the .jsx script by this command: os.callSystem("C:\Program Files\Adobe\Adobe After Effects CC 2019\Support Files\afterfx.exe" -r...

View Article

Image may be NSFW.
Clik here to view.

After Effects error: having to focus on ourselves??

I am working on an extension for AE that uses Angular. I have a lot of things watching assets, and I suspect that might have something to do with this, but was curious if anyone else has ever...

View Article


Image may be NSFW.
Clik here to view.

Setting boxText height based on the text value

Hi, I am creating some text boxes and I am trying to find some way in which, having a fixed box width, I can adjust the height of the box according to the text: var textBox =...

View Article



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