Search found 46 matches

by zlovatt
May 7th, 2019, 4:50 pm
Forum: Scripts Discussion
Topic: Simple question: how to embed images into jsx files?
Replies: 2
Views: 11800

Re: Simple question: how to embed images into jsx files?

Take a look at "Displaying Images" in the Javascript Tools Guide: http://estk.aenhancers.com/4%20-%20User ... ing-images
by zlovatt
May 7th, 2019, 4:50 pm
Forum: Scripts Discussion
Topic: A script with a viewer
Replies: 2
Views: 11865

Re: A script with a viewer

This is an avenue you can explore, though doing this within a scriptUI panel may prove difficult; it may be worth exploring an Extension, as they come with an HTML5 frontend that could draw the rendered animation simpler than in extendscript.
by zlovatt
May 7th, 2019, 4:49 pm
Forum: Scripts Discussion
Topic: How to fix an uncaught javascript exception error generated in the internal extendscript code
Replies: 1
Views: 9634

Re: How to fix an uncaught javascript exception error generated in the internal extendscript code

Yeaa this is an annoying bug of ESTK. Occasionally errors that shouldn't be caught just... are. In my experience they usually only catch the first time, and after that it's fine and works as expected.
by zlovatt
May 7th, 2019, 4:47 pm
Forum: Scripts Discussion
Topic: Copy() function doesn't work with big files
Replies: 2
Views: 11355

Re: Copy() function doesn't work with big files

A better approach may be to use

Code: Select all

system.callSystem()
instead, and write OS-level commands to copy the file. This way is more robust and much more flexible.
by zlovatt
May 7th, 2019, 4:44 pm
Forum: Expression Discussion
Topic: Has anyone found a practical use for the $.global object?
Replies: 5
Views: 20071

Re: Has anyone found a practical use for the $.global object?

Any sort of shared space is incidental, buggy, and shouldn't be relied upon. Don't do this.
by zlovatt
May 7th, 2019, 4:42 pm
Forum: Expressions Library
Topic: Create a timecode with expressions
Replies: 16
Views: 104631

Re: Create a timecode with expressions

Hey! What you can do: Create a slider on your layer Animate it from 1 -> higher Replace your expression with this one (below) Where I wrote {pickwhip slider here}, delete that and pickwhip the slider. function pad(str, max) { str = str.toString(); return str.length < max ? pad("0" + str, m...
by zlovatt
January 28th, 2019, 1:23 pm
Forum: Scripts Discussion
Topic: Zoom timeline
Replies: 2
Views: 10881

Re: Zoom timeline

The majority of "UI control" type things aren't exposed to the scripting API, giving us no way to play with things like that :(
by zlovatt
January 9th, 2019, 11:55 am
Forum: Scripts Discussion
Topic: Integrate a color picker in UI Panel
Replies: 4
Views: 21301

Re: Integrate a color picker in UI Panel

While the system colour picker is fine, here's a scriptui-native solution that offers quite a bit more functionality (and platform agnosticism): https://github.com/smallpath/adobe-color-picker
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: 12389

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

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

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

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 match...
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: 12724

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

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 yo...