Search found 98 matches

by Simma
March 8th, 2012, 5:50 am
Forum: Scripts Discussion
Topic: Close/Open folders?
Replies: 2
Views: 2657

Close/Open folders?

The following code deselects all compositions in the project, but as an unwanted side effect it opens all folders. Is there a way to close the folders again? for(var i = 1; i<=app.project.numItems; i++){ if(app.project.item(i) instanceof CompItem){ app.project.item(i).selected = false; } } I tried w...
by Simma
February 21st, 2012, 6:28 am
Forum: Scripts Discussion
Topic: Apply preset and strange result
Replies: 2
Views: 3397

Re: Apply preset and strange result

Looks like the layer needs to be selected (myLayer.selected = true). Weird.
by Simma
February 19th, 2012, 3:31 pm
Forum: Scripts Discussion
Topic: Apply preset and strange result
Replies: 2
Views: 3397

Apply preset and strange result

I'm probably missing something obvious here but if I run the attached code without a layer selected, a new solid is created and the preset is applied to that layer. If I select the first layer it works as expected. var path = "D:/vfx_tools/aftereffects_tools/animation_presets/jpegEdgeFix.ffx" var my...
by Simma
February 6th, 2012, 6:12 am
Forum: General Scripts Library
Topic: Light wrap setup
Replies: 2
Views: 9585

Re: Light wrap setup

I found some time to write an update to this script. There was quite a lot of downloads of the last version, so I encourage you to try this one as it has some nice features added. You can also edit the default values quite easily by opening the script in a text editor and edit the user variables. It...
by Simma
February 4th, 2012, 12:16 pm
Forum: Scripts Discussion
Topic: Changing Position of a Layer...something is weired
Replies: 1
Views: 2014

Re: Changing Position of a Layer...something is weired

You must use "setValue()" to set a new value. Also remember that position values are stored in an array [x,y] (and z if it's a 3d layer).

Try:
currentLayer.position.setValue([200,200])
by Simma
January 25th, 2012, 8:36 am
Forum: General Scripts Library
Topic: Auto Render 2 (file path, name etc) -- new version
Replies: 10
Views: 13927

Auto Render 2 (file path, name etc)

Finally I found some time to finish a new version of this script that added a some new features and fixed a lot of bugs. But mostly it's a lot more customizable now. If you open the script in ExtendToolkit (or any other script editor) you can easily change a lot of variables to make it fit your pipe...
by Simma
January 10th, 2012, 11:44 am
Forum: General Scripts Library
Topic: LUTS and Scripting
Replies: 3
Views: 6056

Re: LUTS and Scripting

As much as I'd like it as well I don't think there is a way to set LUTs via scripting. However, speaking of LUTs in AE, you should look into Brendan Bolles OpenColorIO plug-in. It great and fills a gap in the current workflow. It's still in beta and you can download it at http://fnordware.com/OpenCo...
by Simma
January 7th, 2012, 4:36 am
Forum: General Scripts Library
Topic: LUTS and Scripting
Replies: 3
Views: 6056

Re: LUTS and Scripting

Unfortunately you can't acces that. A workaround is to save the lut as an animation preset and add the animation preset with your script.
by Simma
November 24th, 2011, 6:12 am
Forum: Expression Discussion
Topic: Trigger expressions by luminance of another layer?
Replies: 9
Views: 6572

Re: Trigger expressions by luminance of another layer?

That works perfectly. Thanks alot Dan, you're a genius!
by Simma
November 23rd, 2011, 8:50 am
Forum: Expression Discussion
Topic: Trigger expressions by luminance of another layer?
Replies: 9
Views: 6572

Re: Trigger expressions by luminance of another layer?

Thanks for your reply Dan. I did se a pop where it tried to change its rotation value from 90 to 0, but it seems like it's constant at 90 degree. Unfortunately my expression skills aren't at this level at the moment so I can't see what's wrong. Really cool though that this is possible, it could be u...
by Simma
November 23rd, 2011, 2:12 am
Forum: Expression Discussion
Topic: Trigger expressions by luminance of another layer?
Replies: 9
Views: 6572

Re: Trigger expressions by luminance of another layer?

Well, the wiggle was actually just an example, what I really want to do is: The solid is a 3D solid that is rotated 90 degrees in Y at start. At the moment the sample expression find white on the control layer, I want the solid to rotate to 0 degrees on Y over 1 second and then stay at 0 throughout ...
by Simma
November 23rd, 2011, 12:28 am
Forum: Expression Discussion
Topic: Trigger expressions by luminance of another layer?
Replies: 9
Views: 6572

Re: Trigger expressions by luminance of another layer?

Very cool, thanks Dan. I didn't even think this was possible with expressions, I just thought I post it anyway. This is super cool! I will try to decipher your code. One thing though, in the current state the wiggle jumps back to "0" once the white area leaves the sample region. Would it be possible...
by Simma
November 22nd, 2011, 8:06 am
Forum: Expression Discussion
Topic: Trigger expressions by luminance of another layer?
Replies: 9
Views: 6572

Trigger expressions by luminance of another layer?

I have two layers, layer1 is a black and white image that animates, and the second layer is a simple solid with a wiggle expression on rotation. The black and white layer should not be visible. Is there a way to trigger the expression of the second layer by the luminance of the first layer? In other...
by Simma
October 15th, 2011, 7:52 am
Forum: Scripts Discussion
Topic: Get file name of img seq except frame padding?
Replies: 6
Views: 4967

Re: Get file name of img seq except frame padding?

Thanks for your reply zold. I played some with your suggestion but didn't get it to work. I might have done something wrong though, as it gave me the full file name. I think I got it to work with this code in most cases at least: var fileName = "shot01_01_007"; // Put every character in an array. va...
by Simma
October 10th, 2011, 3:01 am
Forum: Scripts Discussion
Topic: Get file name of img seq except frame padding?
Replies: 6
Views: 4967

Get file name of img seq except frame padding?

Is there a way to get the file name of a image sequence, minus the frame padding? For example, the name of a file could be any of the following (and more): temp/shot01_####.dpx temp/shot01_#######.dpx temp/shot01.#.dpx How would I do to find just "shot01"? It would be hard to search the string and j...