Search found 705 matches

by Paul Tuersley
September 25th, 2011, 11:59 am
Forum: Paul Tuersley's Scripts
Topic: AE to C4D
Replies: 82
Views: 555690

Re: AE to C4D

It does appear that your 30 fps render from C4D is in sync, but there is a slight jump every 5 frames. This could simply be a result of having 30 fps footage in a 25 fps comp, but the mystery is why you're having to render out of C4D at 30 fps in the first place. Can you double check that in After E...
by Paul Tuersley
September 24th, 2011, 9:10 am
Forum: Paul Tuersley's Scripts
Topic: AE to C4D
Replies: 82
Views: 555690

Re: AE to C4D

Are you saying that despite your composition in After Effects being 25 fps, when you use AEtoC4D to export to C4D it creates a project that is 30 fps? That shouldn't happen. There is an issue where C4D doesn't (or didn't) support non integer frame rates e.g. 29.97, where AEtoC4D rounds up to 30. The...
by Paul Tuersley
September 12th, 2011, 3:42 pm
Forum: Paul Tuersley's Scripts
Topic: AE to C4D
Replies: 82
Views: 555690

Re: AE to C4D

I can assure you that it does work. editboy23 did get it working with my help off list. One thing is that AEtoC4D doesn't currently export FOV so you need to set this manually in C4D. Create some 3D nulls and position them in the corners of your comp in AE on the first frame. You can use these as re...
by Paul Tuersley
August 30th, 2011, 1:27 am
Forum: Scripts Discussion
Topic: Javascript equivalent to 'Reveal layer source in project'
Replies: 4
Views: 12371

Re: Javascript equivalent to 'Reveal layer source in project

You can find a selected comp layer's filename/path with something like this: var theLayer = app.project.activeItem.selectedLayers[0]; alert(theLayer.source.file.fsName); It sounds like you want to use the "Reveal in Finder" option. There are no exact equivalents to either that or "Rev...
by Paul Tuersley
August 30th, 2011, 1:08 am
Forum: Scripts Discussion
Topic: How do I reference footage by name?
Replies: 3
Views: 8690

Re: How do I reference footage by name?

You'll have to loop through app.project.items looking for one with the name "cats.mov".
Use comp.layers.add() to add the layer to the comp, then set layer.startTime to comp.workAreaStart.

I haven't bothered to write the code for you but you should be able to work it out from this.
by Paul Tuersley
August 12th, 2011, 1:23 am
Forum: Scripts Discussion
Topic: New null layer via javascript
Replies: 3
Views: 8855

Re: New null layer via javascript

You want the LayerCollection addNull() method. Page 94 of the CS3 scripting guide.
You only specify a duration, so usage is: layers.addNull(duration)

And for turning layers on/off you want the Layer enabled attribute. Page 86 of the scripting guide.

AE CS3 Scripting Guide
by Paul Tuersley
July 30th, 2011, 2:20 am
Forum: Scripts Discussion
Topic: Script Executed after Error
Replies: 2
Views: 6906

Re: Script Executed after Error

It's because you have: for(var i = 0; i <= myLayers.length; i++){ when it should be: for(var i = 0; i < myLayers.length; i++){ Currently, if myLayers.length was 1, it would loop twice, once for 0, then for 1. But there is no myLayers[1] object, so it fails on the second loop. Generally, if you're lo...
by Paul Tuersley
July 28th, 2011, 8:10 am
Forum: Scripts Discussion
Topic: check if render output file exsits
Replies: 4
Views: 9569

Re: check if render output file exsits

It must be a problem with how you're writing your file path, but I'm not that familiar with the windows side of things. This script should help you figure it out. Run the script and point it at the file in question to see the correct naming convention: var theFile = File.openDialog(); if (theFile !=...
by Paul Tuersley
July 27th, 2011, 10:08 am
Forum: Scripts Discussion
Topic: check if render output file exsits
Replies: 4
Views: 9569

Re: check if render output file exsits

You want newFile.exists, not exsits.
by Paul Tuersley
July 7th, 2011, 1:25 pm
Forum: General Scripts Library
Topic: Output Module Resize not available via Scripting?
Replies: 1
Views: 9406

Re: Output Module Resize not available via Scripting?

You are correct. Scripts can't edit any aspect of an output module. They can only apply templates.

It's always worth filing a feature request: http://www.adobe.com/go/wish
by Paul Tuersley
July 7th, 2011, 4:54 am
Forum: Scripts Discussion
Topic: Get layer from selected property?
Replies: 3
Views: 8216

Re: Get layer from selected property?

You can also navigate back down the property heirarchy using property.propertyGroup(). This will give you the layer object from any property:

Code: Select all

theProperty.propertyGroup(theProperty.propertyDepth)
by Paul Tuersley
June 24th, 2011, 6:47 am
Forum: Script requests
Topic: Point Control Position Based on Mask Spline Percentage.
Replies: 3
Views: 12996

Re: Point Control Position Based on Mask Spline Percentage.

Scripts can access the vertices and tangent information for mask shapes, but expressions can't. But even with a script, I imagine you'd have to somehow use that information to calculate the path to Point Control keyframe conversion, which doesn't sound like fun. I can't think of another solution, be...
by Paul Tuersley
June 24th, 2011, 3:24 am
Forum: Expression Discussion
Topic: calculates the distances of the end points?
Replies: 2
Views: 9831

Re: calculates the distances of the end points?

You could create a comp sized layer / adjustment layer with 4 Beam effects, add expressions to each of the Starting / Ending Point properties, and pickwhip each to one of the circle layers' Position properties.
by Paul Tuersley
June 24th, 2011, 3:17 am
Forum: Script requests
Topic: Point Control Position Based on Mask Spline Percentage.
Replies: 3
Views: 12996

Re: Point Control Position Based on Mask Spline Percentage.

Is the mask animated? If not, you can copy the mask path, add a null and select its Position property before pasting, which turns the spline into a position path over 2 seconds. Then apply a Slider Control and Point Control to another layer and use this expression on the Point Control property: a = ...
by Paul Tuersley
June 6th, 2011, 12:41 am
Forum: Scripts Discussion
Topic: Get all effects used in project
Replies: 6
Views: 11275

Re: Get all effects used in project

It isn't possible to access pt_EffectSearch through another script in the way you want. You would have to create your own code for searching for effects, which would involve searching every layer of every comp in the project.