Search found 18 matches

by pirelouit
September 4th, 2008, 8:13 am
Forum: Scripts Discussion
Topic: detecting color bars
Replies: 2
Views: 7318

Re: detecting color bars

Thank you, this is exactly the help that I needed to get me started. You script is going to save me a lot of time.

Thanks again,
Louis
by pirelouit
September 3rd, 2008, 9:14 am
Forum: Scripts Discussion
Topic: detecting color bars
Replies: 2
Views: 7318

detecting color bars

Hi! I was wondering if there would be a way to detect color bars in a movie file with scripting.

Would there be a way to use the sampleImage() method to automatically place markers where the 'correct color pattern' is detected?

Thnkas,
Louis
by pirelouit
June 5th, 2008, 7:46 am
Forum: Expression Discussion
Topic: how to make value persistent
Replies: 2
Views: 9127

Re: how to make value persistent

Thank you, it worked perfectly. Here is the final script. targetComp = comp("as_claydog"); temoin = thisComp.layer("temoin"); curClosestIndex = null; timeIndex = time; fps = 1.0 / thisComp.frameDuration; while (curClosestIndex == null && timeIndex > temoin.startTime) { cu...
by pirelouit
May 23rd, 2008, 8:21 am
Forum: Expression Discussion
Topic: how to make value persistent
Replies: 2
Views: 9127

how to make value persistent

Hi! I made an expression (applied on timeRemap of a sequence) that displays a specific frame of a sequence based on the position of a guide layer. If the guide layer (called "temoin" in the following code) is over a certain reference layer (in "targetComp" in the code), it then d...
by pirelouit
July 4th, 2006, 12:31 pm
Forum: Scripts Discussion
Topic: get first file name of image sequence
Replies: 1
Views: 6672

get first file name of image sequence

Hi! What would be the best way to get the name of the first file of an image sequence?

The reason I need this is that on some instances, import truncates the name of image sequences and I need my script to set the timecode accordingly with the first frame of the image sequence.

Thanks for the help
by pirelouit
February 13th, 2006, 9:52 am
Forum: Expression Discussion
Topic: transfering expressions
Replies: 5
Views: 13611

Thank you for your help, to be more precise, is there a way to copy a layer so that changes made to the expressions of the original reflect on the duplicates?
by pirelouit
February 13th, 2006, 7:10 am
Forum: Expression Discussion
Topic: transfering expressions
Replies: 5
Views: 13611

transfering expressions

Hi! I was wondering if there was a simple way to transfer expressions from one layer to another (and quicker then copy/pasting each expressions).

Is there a way to duplicate a layer and then change the source image so that it retains the expressions but with a different image?

Thanks for the help!
by pirelouit
January 26th, 2006, 11:07 am
Forum: Scripts Discussion
Topic: add solid to project
Replies: 1
Views: 6697

I realized the reason why what I was trying to do was not working was because I was using 'mainSource' instead of 'source'...

Code: Select all

var timecodeSolid = myComp.layers.addSolid(compBG, "timecodeSolid", 150, 35, compRatio, curDuration);
var timeCode = myComp.layers.add(timecodeSolid.source);
by pirelouit
January 26th, 2006, 10:18 am
Forum: Scripts Discussion
Topic: add solid to project
Replies: 1
Views: 6697

add solid to project

Hi! I made a script that makes a comp with selected footage and adds a timecode. The problem is that it creates a new solid every time.

Is there a way to add a timecode without a solid or to have the script create a solid in the project and then add the same solid to every comp it makes?

Thanks
by pirelouit
January 26th, 2006, 8:32 am
Forum: Scripts Discussion
Topic: Allow scripts to write file and access network
Replies: 5
Views: 26818

Allow scripts to write file and access network

Hi! I've seen in some scripts that it is possible to access and edit the preferences, is it possible also for the "allow scripts to write file and access network" preference? Also, where do you find how to address the preferences, for example app.preferences.savePrefAsLong("Main Pref ...
by pirelouit
January 26th, 2006, 7:35 am
Forum: Scripts Discussion
Topic: variables defined globally
Replies: 3
Views: 9549

variables defined globally

Hi! I was wondering, since variables are defined globally and are even persistent after a script has executed, was is the point of passing parameters to functions (they will have access to the variables anyways)? Also, is there a way to 'reset' all variables (I mean removing them completely from mem...
by pirelouit
January 25th, 2006, 12:49 pm
Forum: Scripts Discussion
Topic: borderStyle
Replies: 1
Views: 6761

borderStyle

Hi! I can't get to change the borderStyle propriety on a panel. I would really appreciate if somebody could give an example on how it's done...

Thanks
by pirelouit
January 18th, 2006, 11:39 am
Forum: Scripts Discussion
Topic: black frame at the end of a rendered movie
Replies: 6
Views: 15928

Thanks, I feel better knowing that I am not the only one with this problem at least. I was wondering, what is the frame rate of your comp, 25 fps? Do you know if the frame rate makes a difference whether or not you obtain an 'extra frame' ? Because if no, it would mean that the duration is rounded s...
by pirelouit
January 17th, 2006, 12:59 pm
Forum: Scripts Discussion
Topic: function defined in another file
Replies: 4
Views: 10754

Thank you, I realized now I was simply not looking in the right place in the documentation. I appreciate the quick feedback.
by pirelouit
January 17th, 2006, 12:14 pm
Forum: Scripts Discussion
Topic: function defined in another file
Replies: 4
Views: 10754

function defined in another file

Maybe it is a stupid question, but how do you make a call to a function defined in another file? I imagine you must specify a relative path, but I couldn't find anything about it in the adobe documentation.

Thanks