Search found 62 matches

by Darkmoon_UK
December 6th, 2007, 3:35 pm
Forum: Expression Discussion
Topic: point of interest plus
Replies: 2
Views: 9369

Hi Harico, In the code you already have, src is given a 3 element Array containing the X, Y and Z values of the Camera position. What you want to do is take the X and Z from that and put your own Y in. So, construct a new 3 element Array, where the X and Z elements are picked from the existing Array...
by Darkmoon_UK
December 6th, 2007, 9:59 am
Forum: Scripts Discussion
Topic: Using JS "import" for modular code
Replies: 6
Views: 17633

Ok, I think I have got to the bottom of this, and discovered something interesting about JavaScript in the process... Firstly, the Mozilla JavaScript Reference states that AE's version of ECMAScript does not support import and export functions: Mozilla Reference: http://developer.mozilla.org/en/docs...
by Darkmoon_UK
December 6th, 2007, 7:58 am
Forum: Scripts Discussion
Topic: How to copy a keyframe ?
Replies: 1
Views: 6517

I can't say for 100% theres no better way, but I have looked into this a few times myself. Get/Set does appear to be the only option...
by Darkmoon_UK
December 6th, 2007, 7:49 am
Forum: Scripts Discussion
Topic: Using JS "import" for modular code
Replies: 6
Views: 17633

Using JS "import" for modular code

EDIT: See my reply below to jump straight to the solution I expect that many of us, myself included, have a few functions that we repeatedly use when scripting. One of the features of Javascript I've most wanted to use is to 'import' other JavaScript files, so that I can keep one updateable library...
by Darkmoon_UK
December 5th, 2007, 6:08 am
Forum: Scripts Discussion
Topic: Asynchronous strategies
Replies: 2
Views: 8571

Its a tricky one. I haven't been in the same situation just yet, though I am presently experiencing the joys of trying to get Java to talk to JavaScript via TCP. I don't know what kind of output curl gives you on the commandline, but one idea would be to pipe that to a file which your AE script then...
by Darkmoon_UK
December 5th, 2007, 5:03 am
Forum: Scripts Discussion
Topic: property cycling via index
Replies: 1
Views: 7126

Hi lya, Yes this is possible through JavaScripts Reflection function. Its probably best for both of us if I just point you to my simple 'Explore' script that demonstrates the use of Reflection. The code should be fairly self explanatory and show you how to explore properties and methods of any objec...
by Darkmoon_UK
November 7th, 2007, 9:23 am
Forum: Scripts Discussion
Topic: AE selected items trouble
Replies: 4
Views: 10520

Yes, and what jeff said :wink:
by Darkmoon_UK
November 7th, 2007, 9:01 am
Forum: Scripts Discussion
Topic: AE selected items trouble
Replies: 4
Views: 10520

Good news, this is directly referable from the API, though I think its worth building into a function just to perform a bit of checking on the active item. Like so: function getSelectedLayers() { var currentComp = app.project.activeItem; if(currentComp instanceof CompItem) return(currentComp.selecte...
by Darkmoon_UK
November 7th, 2007, 5:13 am
Forum: Scripts Discussion
Topic: Connecting to Excel
Replies: 8
Views: 21888

Atomic: Does your VB version rely on the GetObject() or ActiveXObject() functions. If so, these simply do not exist in AE's scripting environment. Refer to my previous post. I just sent a feature request to Adobe over this, surely what they've done for Photoshop they could do for After Effects. It w...
by Darkmoon_UK
November 7th, 2007, 4:23 am
Forum: Scripts Discussion
Topic: Japanese scripters are better informed
Replies: 15
Views: 27790

Reflection and the Data Browser

I too set about writing a function to explore the After Effects DOM, using the Reflection interface. Typically I had just finished it when I discovered that right clicking in the Data Browser reveals a number of 'Show...' options, enabling these lets you see everything the Reflection class can! The ...
by Darkmoon_UK
November 6th, 2007, 10:32 am
Forum: Scripts Discussion
Topic: Connecting to Excel
Replies: 8
Views: 21888

Please jump in to correct me if I'm wrong... I think the problem here is that the JavaScript engine used by After Effects is a 'sand-boxed' Adobe engine and, though similar, it's certainly not the same as the one used by IE in Windows. Because of this it lacks the same ActiveX connections and many o...
by Darkmoon_UK
September 3rd, 2007, 4:25 am
Forum: Scripts Discussion
Topic: width of a text layer and other text questions
Replies: 3
Views: 8077

These are both issues which I have written and phoned Abobe several times about; straining to emphasize that these two holes in AE's scripting capabilities bring its entire use in our graphics pipeline to hang in the balance. I manage the graphics pipeline for interactive DVD projects where I script...
by Darkmoon_UK
May 25th, 2007, 2:43 am
Forum: Scripts Discussion
Topic: ExtendScript / JavaScript implementation - Classes???
Replies: 3
Views: 13416

ExtendScript / JavaScript implementation - Classes???

Being a Java coder at heart, I really want to be able to use classes , constructors etc. in my scripts. I don't mind if I do this by using JavaScript 2.0 features e.g. http://www.mozilla.org/js/language/js20-2000-07/core/classes.html Or by something like the importPackage() and importClass() functio...
by Darkmoon_UK
January 22nd, 2007, 8:37 am
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122334

Nice solution, nab! My photoshop method was messy and sloo-o-oow; and probably would only have worked properly had I delved into the world of Adobe Bridge, which I don't have the time to learn mid-project. I am currently using the method of coding an 'average characters per line' solution to determi...
by Darkmoon_UK
January 18th, 2007, 9:49 am
Forum: Scripts Discussion
Topic: POLL: What do you use After Effects scripting for?
Replies: 4
Views: 10443

Myself, I am developing and now using a fairly involved piece of scripting/image filtering. The idea is to create full motion animated overlays (subtitles) on DVD through the authoring standard Sonic Scenarist. I can animate whatever I like in After Effects, then downsample it on the fly to the four...