Search found 9 matches

by crossrad
June 29th, 2021, 10:55 am
Forum: Expression Discussion
Topic: prime numbers ccounter
Replies: 4
Views: 8662

Re: prime numbers ccounter

I think you can do what you want with expressions using a text layer which shows the frame number and then add an effect "Change to Color" where the "To" color is: P = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149] ; t = timeToFr...
by crossrad
June 24th, 2021, 3:29 pm
Forum: Expression Discussion
Topic: prime numbers ccounter
Replies: 4
Views: 8662

Re: prime numbers ccounter

Are you trying to write an expression for the colour of the counter, for example to use in the "Change to Color" effect, or to write a script that will set keyframes for the color and value of a text layer? I ask because this is the "Expressions" area of the forum but setting att...
by crossrad
June 15th, 2021, 12:11 pm
Forum: Expression Discussion
Topic: Matte only over items of a specific color?
Replies: 3
Views: 8036

Re: Matte only over items of a specific color?

I think I understand what you are trying to do better now. I will stick with my original answer though - track mattes with colour manipulations have amazing possibilities - here is a short example - the plane has been coloured blue to match the sky. A red border has been added which is active only w...
by crossrad
June 12th, 2021, 5:53 pm
Forum: Script requests
Topic: Playing every Nth frame, then repeating with the next set and so on
Replies: 1
Views: 8190

Re: Playing every Nth frame, then repeating with the next set and so on

I achieved this with an expression in time remapping the footage, but unlike most properties, if there is no time remapping, there is no stopwatch symbol to Alt-click. However, I found that by selecting "Time->Enable Time Remapping" on the footage layer it creates two keyframes which effec...
by crossrad
June 12th, 2021, 1:59 pm
Forum: Expression Discussion
Topic: Matte only over items of a specific color?
Replies: 3
Views: 8036

Re: Matte only over items of a specific color?

Yes, you can create "TrackMattes" which is basically saying mask one layer (A) by the one (B) immediately above it. This layer can be a copy of another layer and have various colour manipulations applied. Wherever the result is white, A will be visible, black it will not. The attached proj...
by crossrad
June 12th, 2021, 11:43 am
Forum: Scripts Discussion
Topic: Copy Effect with Parameters
Replies: 4
Views: 18454

Re: Copy Effect with Parameters

Thanks very much for this. I made use of this technique for copying effects and it works great ... mostly, but I have come across a case where the copy did not happen. No error messages were generated. I implemented a retry mechanism, and in a substantial regression test the copy had to be retried a...
by crossrad
June 7th, 2021, 1:17 pm
Forum: Expression Discussion
Topic: Auto-scale a text line in a multi-lines text layer
Replies: 1
Views: 6815

Re: Auto-scale a text line in a multi-lines text layer

You mentioned jounalists, and I am wondering if you are aware of "paragraph text" which will automatically fully justify text and has four different options for dealing with the last line. I think this is more what is expected in journalism than scaling lines by different amounts. https://...
by crossrad
June 6th, 2021, 12:07 pm
Forum: Expressions Library
Topic: Removing every Nth frame
Replies: 1
Views: 10178

Re: Removing every Nth frame

I achieved this with time remapping, but unlike most properties, if there is no time remapping, there is no stopwatch symbol to Alt-click. However, I found that by selecting Time->Enable Time Remapping on the footage layer it creates two keyframes which effectively mean no-remapping. I found that yo...
by crossrad
May 11th, 2021, 5:42 am
Forum: General Scripts Library
Topic: Function to read a CSV file that fully supports quoted fields
Replies: 0
Views: 14728

Function to read a CSV file that fully supports quoted fields

There is lots of published javascript to read CSV files, but many do not completely implement quoting of fields and including delimiters and quotes within quoted fields. CSV is a documented spec, see https://tools.ietf.org/html/rfc4180 and https://www.loc.gov/preservation/digital/formats/fdd/fdd0003...