Expressions/Scripts/Presets

Search found 11 matches

by jordanwade33
Wed Jan 04, 2017 4:52 pm
Forum: Scripts Discussion
Topic: Can't write to The applyStroke attribute
Replies: 1
Views: 560

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
Wed Nov 09, 2016 1:45 pm
Forum: Scripts Discussion
Topic: Set Marker Duration
Replies: 3
Views: 645

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
Tue Nov 08, 2016 7:30 pm
Forum: Scripts Discussion
Topic: Set Marker Duration
Replies: 3
Views: 645

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
Sat Mar 05, 2016 3:01 am
Forum: Scripts Discussion
Topic: ScriptUI Centered MultiLine Text
Replies: 0
Views: 1628

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
Mon Nov 09, 2015 2:20 am
Forum: Scripts Discussion
Topic: Copy Effect with Parameters
Replies: 2
Views: 1510

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
Fri Nov 06, 2015 1:31 pm
Forum: Scripts Discussion
Topic: Copy Effect with Parameters
Replies: 2
Views: 1510

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
Tue Feb 03, 2015 12:29 am
Forum: Scripts Discussion
Topic: Zoom Out via Javascript
Replies: 2
Views: 1896

Re: Zoom Out via Javascript

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

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
Fri Dec 12, 2014 12:19 am
Forum: Scripts Discussion
Topic: selectedProperties on Effects
Replies: 4
Views: 2456

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
Wed Dec 10, 2014 3:00 pm
Forum: Scripts Discussion
Topic: selectedProperties on Effects
Replies: 4
Views: 2456

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
Wed Dec 10, 2014 1:06 am
Forum: Scripts Discussion
Topic: selectedProperties on Effects
Replies: 4
Views: 2456

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