Search found 14 matches

by jordanwade33
April 9th, 2018, 11:25 am
Forum: Scripts Discussion
Topic: Check for Updates
Replies: 0
Views: 1970

Check for Updates

I'm curious how you guys have implemented a Check for Updates function in any of your scripts to check for the latest version of the script. I'm aware that there will have to be a web server configured on the other end to respond with what the current version of the script is, but I'm not sure how t...
by jordanwade33
November 6th, 2017, 4:22 pm
Forum: Scripts Discussion
Topic: Delete Selected Keyframes via script
Replies: 4
Views: 1956

Re: Delete Selected Keyframes via script

I think what you were going for is this: var keySelection = property.selectedKeys;  for (i = 0; i < keySelection.length; i++) {     property.removeKey(keySelection[i]); } The problem with that is that as you're removing keyframes, the current indexes of the keyframes reduce by one, but your original...
by jordanwade33
November 1st, 2017, 1:15 pm
Forum: Scripts Discussion
Topic: Adding onclick function to a generated button
Replies: 2
Views: 1520

Re: Adding onclick function to a generated button

I recently worked on a script that had a similar issue and this is how I worked around it. I'm sure there's probably a better way to do it that this, but I just use a separate function that gets assigned to every button and then assign the number in the preset array to the button name, so when the b...
by jordanwade33
January 4th, 2017, 4:52 pm
Forum: Scripts Discussion
Topic: Can't write to The applyStroke attribute
Replies: 1
Views: 1441

Re: Can't write to The applyStroke attribute

I'm not sure if you've already solved this, but I ran into something similar with Markers, so I thought I would share my experience.  It is read/write, but you need to set the value again after changing it, it doesn't update automatically. If you want to change other attributes (font size, colors, e...
by jordanwade33
November 9th, 2016, 1:45 pm
Forum: Scripts Discussion
Topic: Set Marker Duration
Replies: 3
Views: 1554

Re: Set Marker Duration

Thanks for the quick response! That example code block was able to solve my problem, though not only restricted to AE 14.0. Access to comp markers is new to AE 14.0 but not to layer markers as I was looking for. The solution to my problem is that I should set the duration of the marker before the sc...
by jordanwade33
November 8th, 2016, 7:30 pm
Forum: Scripts Discussion
Topic: Set Marker Duration
Replies: 3
Views: 1554

Set Marker Duration

Is it possible to set the duration of a marker via a script? It appears so via the scripting guide, but I can't actually get it to work. Does anyone have experience with this? A basic example. A comp, with one layer, with one marker. The alert returns the correct value of the marker, but if you look...
by jordanwade33
March 5th, 2016, 3:01 am
Forum: Scripts Discussion
Topic: ScriptUI Centered MultiLine Text
Replies: 0
Views: 2606

ScriptUI Centered MultiLine Text

I'm working on making a dockable script that has centered multiline text. The snippet below previews correctly from ExtendScript Toolkit, but once I run it from After Effects, the text become left justified instead of centered. Am I doing something wrong, or is this just a bug? function myScript(thi...
by jordanwade33
November 9th, 2015, 2:20 am
Forum: Scripts Discussion
Topic: Copy Effect with Parameters
Replies: 2
Views: 2501

Re: Copy Effect with Parameters

I just tried the function that you came up with and it works great for what I need it to. It's sad to admit, but it never occurred to me to just call the menu items to copy and paste. Thanks so much for the help!
by jordanwade33
November 6th, 2015, 1:31 pm
Forum: Scripts Discussion
Topic: Copy Effect with Parameters
Replies: 2
Views: 2501

Copy Effect with Parameters

I'm struggling to come up with an easy solution to my problem, but I think there should be one out there. What I'm looking to do is to use a script to copy an effect from one layer to another along with it's parameters. The trick is that every effect has a different amount of properties and can have...
by jordanwade33
February 3rd, 2015, 12:29 am
Forum: Scripts Discussion
Topic: Zoom Out via Javascript
Replies: 2
Views: 2566

Re: Zoom Out via Javascript

Okay, I had a feeling that was the answer. Thanks for the help Dan!
by jordanwade33
February 1st, 2015, 11:32 pm
Forum: Scripts Discussion
Topic: Zoom Out via Javascript
Replies: 2
Views: 2566

Zoom Out via Javascript

Does anyone know how to zoom in/zoom out in the After Effects timeline via javascript? I couldn't find any references to it in the AE Scripting guide, so maybe it's not possible. I have a script that adds some duration to a comp, and I would like it to then zoom out to fit the entire timeline in vie...
by jordanwade33
December 12th, 2014, 12:19 am
Forum: Scripts Discussion
Topic: selectedProperties on Effects
Replies: 4
Views: 3224

Re: selectedProperties on Effects

Hi Xavier,

Thanks for your help!

It is a bit of a pain how that works. I thought I was saving some data by just storing the array as a variable, but I guess it's way more complicated than that. Thanks for the comments on the script, it helps me understand what's going on. Thank you so much!

-Jordan
by jordanwade33
December 10th, 2014, 3:00 pm
Forum: Scripts Discussion
Topic: selectedProperties on Effects
Replies: 4
Views: 3224

Re: selectedProperties on Effects

Thanks for the help. That's very good to know! I've stripped the script down to the bare bones to troubleshoot and I'm learning a lot. I can now get the script to read the property from the effect and apply an expression to that property if I omit the part that adds the two sliders. Is it possible t...
by jordanwade33
December 10th, 2014, 1:06 am
Forum: Scripts Discussion
Topic: selectedProperties on Effects
Replies: 4
Views: 3224

selectedProperties on Effects

I'm really new to scripting and need some help with what I've been working on lately. I've been using javascript to make buttons for ft-toolbar to try and speed up my workflow on things. I've been mostly successful until now. My goal - Create a script that takes a selected property on a layer, add t...