Expressions/Scripts/Presets

Search found 19 matches

  • 1
  • 2
by ajk48n
Fri Feb 02, 2018 8:47 pm
Forum: Scripts Discussion
Topic: Calling a function defined inside another function
Replies: 0
Views: 107

Calling a function defined inside another function

I am trying to call a function that is defined inside another function. So say I have this: function myFunc() { function test() { alert("test'); } } Is there any way to call test() without explicitly calling it inside of myFunc()? For instance, I'd like to be able to call it like this: myFunc()...
by ajk48n
Tue Mar 04, 2014 8:36 am
Forum: Scripts Discussion
Topic: writeln using non-English characters
Replies: 1
Views: 2070

writeln using non-English characters

I'm having a problem writing a line to a file when the text is a non-english character. For instance, I run the following var presetFile = File.saveDialog("Select a file..."); presetFile.open("w","TEXT","????"); var english = "A"; var chinese = "...
by ajk48n
Mon Dec 16, 2013 4:50 pm
Forum: Scripts Discussion
Topic: addKey and setValuesAtTimes calculation time
Replies: 2
Views: 2179

Re: addKey and setValuesAtTimes calculation time

Thanks for the comments. I'm talking in the range of 500-1000 keyframes, which have been gotten from motion tracking. Unfortunately, I have no way of knowing where the end user is going to be putting the keyframes, so they may well be overlapping previous keyframes. Although, you did give me a good ...
by ajk48n
Sun Dec 15, 2013 10:55 pm
Forum: Scripts Discussion
Topic: addKey and setValuesAtTimes calculation time
Replies: 2
Views: 2179

addKey and setValuesAtTimes calculation time

I'm trying to add keys on layers that already have a large amount of keys, and I'm having some trouble getting the processing time down to an acceptable length. Here's what I've found so far. Adding keys with setValueAtKey or setValueAtTime takes massively longer than putting all the times and value...
by ajk48n
Thu Nov 28, 2013 4:44 am
Forum: Scripts Discussion
Topic: Custom Effect Button
Replies: 0
Views: 3349

Custom Effect Button

Hi all,

Is there a way to create a custom effect button? Or is that only available if making a plugin, and not a script?

My end goal is to add some effects to a layer, and then have a button that will update things based on changed parameters.

Thanks for any help.
by ajk48n
Thu Jun 06, 2013 6:50 am
Forum: Expression Discussion
Topic: Optimizing Expressions
Replies: 1
Views: 3933

Optimizing Expressions

Hey everyone, I'm looking for ways to optimize the speed of evaluating expression. I am fine with losing readability as long as things evaluate quicker. From some experimenting, it looks like var1 = effect("Slider Control")("Slider"); var2 = effect("Slider Control 2")(&...
by ajk48n
Thu Jun 02, 2011 10:31 am
Forum: Scripts Discussion
Topic: Placeholder for a not yet created file?
Replies: 3
Views: 2382

Re: Placeholder for a not yet created file?

You can change the [#####] with this: var framePath = path.replace(/%5B.*%5D/g, pad(first_frame, 5)); function pad(numNumber, numLength){ var strString = '' + numNumber; while(strString.length<numLength){ strString = '0' + strString; } return strString; } it will change the "[#####]" into ...
by ajk48n
Thu May 05, 2011 10:25 am
Forum: Scripts Discussion
Topic: delete render template
Replies: 0
Views: 2207

delete render template

I have a comp in my render queue. I need to duplicate this comp, and put it in the render queue with the same render settings and ouput module as the original comp. So I take my original comp, save a template of the render settings and output module, and then apply this new template to the new comp....
by ajk48n
Wed Jun 10, 2009 9:43 am
Forum: General Scripts Library
Topic: Renderfarm Script
Replies: 2
Views: 6531

Re: Renderfarm Script

Hi,

I was wondering if anyone had tried using this script, and met with success or failure. I need to get this ready for other people at my job to use it, and was hoping for some feedback if instructions were somewhat easy to understand, or problems I didn't document, etc.

thanks for any help
by ajk48n
Tue Mar 31, 2009 9:58 am
Forum: Scripts Discussion
Topic: Replace words in expressions - script doesn't work
Replies: 6
Views: 6711

Re: Replace words in expressions - script doesn't work

I needed the same sort of script, so I took yours, and expanded on it. I got the ability to search all properties implemented. The script basically recursively searches through all properties looking for ones which have expressions enabled. I also added the ability to specify your search and replace...
by ajk48n
Mon Mar 16, 2009 9:05 am
Forum: General Scripts Library
Topic: Renderfarm Script
Replies: 2
Views: 6531

Renderfarm Script

This is a script to assist in setting up files to be rendered over a network on a renderfarm. Unzip the attached file, and you should find: Render_to_Renderfarm.jsx Renderfarm_Settings.ars Renderfarm_Output_Module.aom touchFiles.sh com.graphics.AFXRenderfarmWatch.plist Here are the basics to using t...
by ajk48n
Mon Jun 09, 2008 10:14 am
Forum: Scripts Discussion
Topic: Assign hotkeys to scripts in MAC OS X - I found a way
Replies: 3
Views: 4172

Re: Assign hotkeys to scripts in MAC OS X - I found a way

Correct me if I'm wrong, but I believe this can also be done, for the first 20 scripts or so, by setting the hotkey in the Shortcut preference file. This can be found in Computer / Users / User Name / Library / Preferences / Adobe / After Effects / 8.0 / Adobe After Effects 8.0 Shortcuts Search in t...
by ajk48n
Mon May 12, 2008 3:45 pm
Forum: General Scripts Library
Topic: Layer Repeater Script
Replies: 0
Views: 8125

Layer Repeater Script

This is a script that is the equivalent of the repeater animation effect that is found for shape layers. This seems like something that may exist already, but I have not been able to find it. To use this, select the layer that you want to repeat, and run the script. It will ask you how many duplicat...
by ajk48n
Mon Feb 25, 2008 3:42 pm
Forum: Scripts Discussion
Topic: save frame as... through a script
Replies: 6
Views: 4888

Re: save frame as... through a script

I need to be able to select a few hundred comps, and save out a single frame from each one. However, I also may need to change the "Output To:" name, depending on the factors in the comp, (ex. just a color channel, just an alpha, embedded alpha, etc.). So it would be very helpful if I coul...
by ajk48n
Mon Feb 25, 2008 2:34 pm
Forum: Scripts Discussion
Topic: save frame as... through a script
Replies: 6
Views: 4888

save frame as... through a script

I'm trying to automate the "Save Frame As...File" function through a script. I've gotten it to work by sending an item to the render queue, changing the duration of the render to be 1 frame, and using a jpg template for the output module. The problem comes in when naming what the render wi...
  • 1
  • 2