Search found 23 matches

by zlovatt
August 1st, 2018, 2:55 pm
Forum: Scripts Discussion
Topic: Extendscript: Is there a way to work out arguments for [native code] functions?
Replies: 2
Views: 291

Re: Extendscript: Is there a way to work out arguments for [native code] functions?

What function(s) are you looking for specifically? In the sidebar here there are links to the overall Adobe Extendscript reference guide, as well as the AE Scripting Guide specifically. You'll find lots of documentation info there!
by zlovatt
July 26th, 2018, 12:08 pm
Forum: Scripts Discussion
Topic: how to check whether a selected layer is a nullLayer?
Replies: 2
Views: 515

Re: how to check whether a selected layer is a nullLayer?

The check for null layer is just layer.nullLayer , not layer instanceof nullLayer (function () { var comp = app.project.activeItem; var layer = comp.selectedLayers[0]; if (layer.nullLayer) { alert('Layer is a null') } else { alert('Layer is not a null'); } })(); See: http://docs.aenhancers.com/layer...
by zlovatt
June 30th, 2018, 6:53 pm
Forum: Script requests
Topic: AE export CSS animation data?
Replies: 2
Views: 375

Re: AE export CSS animation data?

If you're looking for cubic bezier values to use for css, Flow can convert animation curves to cubic bezier values.

Otherwise.. can you be more specific about the export format you're looking for?
by zlovatt
June 26th, 2018, 1:50 pm
Forum: Impudent 1's Scripts
Topic: Default Folders
Replies: 13
Views: 18193

Re: Default Folders

Prompting discussion on ae-list, I've rebuilt the DefaultFolders script to work a little bit differently. This way If installed to ScriptUI Panels, and run via Window > DefaultFolders : You'll see a UI where you can specify folder names, and some buttons. "Create" will create folders matching the UI...
by zlovatt
June 25th, 2018, 12:47 pm
Forum: Script requests
Topic: How to set the opacity of every text layers to 0 and time vary stop watch activated ?
Replies: 1
Views: 358

Re: How to set the opacity of every text layers to 0 and time vary stop watch activated ?

Hi! This is how I'd do it. Note that this doesn't do any error checking (it doesn't check that a comp exists, or that there are any layers, or that there aren't keyframes) -- but for a really simple first pass, this should work! (function () {   // Get the active composition   var comp = app.project...
by zlovatt
June 2nd, 2018, 4:13 pm
Forum: Scripts Discussion
Topic: onChange event executing twice
Replies: 3
Views: 897

Re: onChange event executing twice

[...] do you wrap all your scripts or only gui scripts? Dan All of them. Otherwise any other tool can manipulate or execute your code, either deliberately or not.  For example: you never declare what scriptName   is. So my unwrapped script could declare var scriptName = "hi"; , and now your panel w...
by zlovatt
April 8th, 2018, 8:55 am
Forum: Announcements
Topic: Online Documentation Guides
Replies: 2
Views: 3635

Re: Online Documentation Guides

simonrobots wrote:One of the links is incorrect. It should be estk.aenhancers.com, not eskt.aenhancers.com as shown.

This is a great resource. Thank you.
Embarrassing! Fixed. 
by zlovatt
February 14th, 2018, 12:55 pm
Forum: Scripts Discussion
Topic: Add layer to comp
Replies: 2
Views: 886

Re: Add layer to comp

Yes, you certainly can.

Look at "layers.add" : http://docs.aenhancers.com/layers/layer ... ection-add


Code: Select all

var item = // your solid;
var comp = app.project.activeItem;
var itemAsLayer = comp.layers.add(item);
by zlovatt
December 6th, 2017, 8:02 pm
Forum: Announcements
Topic: Online Documentation Guides
Replies: 2
Views: 3635

Online Documentation Guides

Below are links to scripting guides and documentation for various products, all of which are kept up-to-date with the latest releases of the host application, and are easily bookmarkable/searchable/savable. All are open-source, public contribution-friendly, and are the result of many hours and days ...
by zlovatt
December 6th, 2017, 7:57 pm
Forum: Script Tutorials
Topic: Atom text editor for after effects scripting
Replies: 2
Views: 1847

Re: Atom text editor for after effects scripting

This Zack doesn't use Atom, and never has. I used to use Sublime Text 3 with a heavily modified version of Sebastian Lavoie's "Extendscript" package to easily execute scripts directly in AE. His version would copy scripts to specific folders and I found this unnecessary, so modified it to be more mo...
by zlovatt
December 6th, 2017, 7:47 pm
Forum: Scripts Discussion
Topic: Get world position of trim path point?
Replies: 1
Views: 907

Re: Get world position of trim path point?

Using CC18 and later, AE expressions have access to more path-related functions; you can use "pointOnPath" and feed it a % to get the actual X and Y positions along a path and different percents.

Check out the documentation here: http://expressions.aenhancers.com/path-property.html
by zlovatt
July 5th, 2017, 12:19 pm
Forum: Scripts Discussion
Topic: Need help about a script! (New to scripting)
Replies: 2
Views: 1198

Re: Need help about a script! (New to scripting)

Luckily this is a simple fix! Change from this-- for (var i=0; i <= selectedItems.length; i++) { to-- for (var i=0; i < selectedItems.length; i++) { The issue is that selectedItems is an array counting from 0; if there were 3 elements, you would access them by array[0], array[1], array[2]. So, you w...
by zlovatt
March 20th, 2017, 1:57 pm
Forum: Scripts Discussion
Topic: Change Font and Font Style by script
Replies: 1
Views: 6628

Re: Change Font and Font Style by script

Via Tomas Sinkunas, these are all the script-accessible text properties. It looks like you'll need to set the font to "Arial-Bold" and that could work. var textLayer = comp1_comp.layers.addText("This is BOLD"); var textLayer_TextProp = textLayer.property("ADBE Text Properties").property("ADBE Text D...
by zlovatt
March 13th, 2017, 5:46 pm
Forum: Expression Discussion
Topic: How to Apply specific values to a Slider Control
Replies: 3
Views: 1851

Re: How to Apply specific values to a Slider Control

@runegan Thanks! Forgot about that. Updated my post.