Search found 203 matches

by nab
June 9th, 2009, 9:10 am
Forum: Scripts Discussion
Topic: How to know if a parameter is available ?
Replies: 3
Views: 8386

Re: How to know if a parameter is available ?

Hummm...I don't think it's possible. I don't know the script you're working on, but adding a new control to your script interface (to change the value of this property for all duplicates) may represent a solution.
by nab
June 8th, 2009, 1:17 pm
Forum: Scripts Discussion
Topic: How to know if a parameter is available ?
Replies: 3
Views: 8386

Re: How to know if a parameter is available ?

A possible solution could be a try/catch statement.
by nab
June 3rd, 2009, 8:35 am
Forum: Scripts Discussion
Topic: Binary data into binary script
Replies: 4
Views: 10511

Re: Binary data into binary script

You can embed binary data in you script as an hex string. When you execute the script, the icon file (if it does not already exists) can be recreated from the hex string. So basically what you need is some binToHex() and hexToBin() functions to do the conversion. for each icon file, convert binary d...
by nab
May 26th, 2009, 6:38 am
Forum: Scripts Discussion
Topic: Create a "correct" Adjustment layer
Replies: 2
Views: 7141

Re: Create a "correct" Adjustment layer

As a little hack you can try this (works in the active comp only):

Code: Select all

app.executeCommand(2279);
by nab
April 17th, 2009, 7:07 am
Forum: Scripts Discussion
Topic: 3D switch bug
Replies: 2
Views: 7288

3D switch bug

Hey guys, I'm not sure whether it is a bug or if I misunderstand something, but I observed the same behavior on both CS3 and CS4 (Mac & Win). Setting the 3D flag to true, when the layer is already 3D, resets the Z position to 0. It seems that internally the 3D switch is first disabled, and then ...
by nab
March 11th, 2009, 11:58 am
Forum: Scripts Discussion
Topic: AE On A Mac does not generate LF character.
Replies: 5
Views: 12422

Re: AE On A Mac does not generate LF character.

I don't know what G.SCENE_STRING contains but it sounds like this string already contains the newline sign. Did you try to write it directly to the file, i.e., file.write(G.SCENE_STRING) ? According to my test, "\r\n" seems to be the winner : http://nabscripts.com/Forum/Scripts/images/newl...
by nab
February 23rd, 2009, 8:45 am
Forum: Scripts Discussion
Topic: Bug in CS3 CS4 ?
Replies: 2
Views: 7843

Bug in CS3 CS4 ?

Hey guys, could you please confirm me that the following piece of code causes a crash in CS3 and CS4 (Mac & Win): var layer = app.project.activeItem.layer(1); var dupLayer = layer.duplicate(); var mask = dupLayer.Masks.addProperty("Mask"); mask.name = "Triangle"; // BOUM ! Th...
by nab
February 16th, 2009, 5:06 pm
Forum: General Scripts Library
Topic: TrackerViz for After Effects
Replies: 69
Views: 277539

Re: TrackerViz for After Effects

"When there's an unrelated layer in the comp with a name of more than 31 characters...." ""save settings" doesn't save my settings in the 2.x version" These bugs will be fixed in the next version. "I'd like the option in settings to enter a name..." Could you...
by nab
September 17th, 2008, 10:32 am
Forum: Scripts Discussion
Topic: Using audioAmp2videoSpeed?
Replies: 2
Views: 7043

Re: Using audioAmp2videoSpeed?

Convert Audio To Keyframes first :wink:
by nab
September 17th, 2008, 10:31 am
Forum: General Scripts Library
Topic: TrackerViz for After Effects
Replies: 69
Views: 277539

Re: TrackerViz for After Effects

I've read all the comments and every request will be in a way or another incorported in the next version.

The most recent version of TrackerViz can be found here http://www.nabscripts.com/downloads_en.html

Sean, great video tutorials 8) !
by nab
June 3rd, 2008, 8:34 pm
Forum: Script requests
Topic: split rgb
Replies: 1
Views: 7192

Re: split rgb

Shift Channels to isolate the different channels + Colorama to colorize. Combine the three instances of the footage with appropriate Blending mode, and animate your layers as you like. Just a suggestion...
by nab
June 3rd, 2008, 8:27 pm
Forum: Scripts Discussion
Topic: A 4-lines reverseLayerOrder function
Replies: 0
Views: 6079

A 4-lines reverseLayerOrder function

Scripting folklore :) (works in the active comp only) function reverseLayerOrderInActiveComp(comp) { while (comp.selectedLayers.length) comp.selectedLayers[0].selected = false; for (var i = comp.numLayers; i >= 1; i--) comp.layer(i).selected = true; app.executeCommand(app.findMenuCommandId("Cut...
by nab
June 1st, 2008, 3:37 pm
Forum: Scripts Discussion
Topic: Multiline 'edittext'
Replies: 0
Views: 5866

Multiline 'edittext'

I have noticed that the multiline property of edittext is broken on CS3 (Windows). var pal = new Window("palette", "Multiline Is Broken", [0,0,200,100]); pal.edt = pal.add("edittext", [10,10,190,90], "Test multiline text", {multiline:true}); pal.center(); pal....
by nab
May 22nd, 2008, 11:51 pm
Forum: Expressions Tutorials
Topic: Hacking Expression (Article)
Replies: 1
Views: 26685

Re: Hacking Expression (Article)

That's not #import, but #include (I think). Something like this:

Code: Select all

#include "C:/myUtils.js"
formatNumber(13, "0000");