Vivien Lemaignan
Forum Replies Created
-
Hi Walter,
Thank you very much for your feedback.
I tested the script with the reduction of the project on the composition and it works well. For my needs I removed some info from the script that I didn’t need.
// quick script to yield tab-separated name, type, width, height, frame rate, and duration for every item in a project
{
var projectTimeDisplayType = app.project.timeDisplayType;
app.project.timeDisplayType = TimeDisplayType.TIMECODE;
var namesAndFrameSizes = "Name\tType\tWidth\tHeight\tFrame Rate\tDuration\n";
for (var i = 1; i <= app.project.numItems; i++) {
var asset = new Object;
asset.name = app.project.item(i).name;
asset.typeName = app.project.item(i).typeName;
namesAndFrameSizes += asset.name + "\n";
}
app.project.timeDisplayType = projectTimeDisplayType;
alertScroll("Names and Frame Sizes", namesAndFrameSizes);
}
function alertScroll (title, input) // string, string/array
{
// if input is an array, convert it to a string
if (input instanceof Array)
input = input.join("\r");
var w = new Window("dialog", title);
var list = w.add("edittext", undefined, input, {multiline: true, scrolling: true});
// the list should not be bigger than the maximum possible height of the window
list.maximumSize.height = w.maximumSize.height - 100;
list.minimumSize.width = 600;
w.add("button", undefined, "Close", {name: "ok"});
w.show();
}My only small (really small) concern is that my project is quite heavy because there is a lot of composition and reduce and then cancel it takes time…if you know how I could add a line in the script to tell it to focus on the selected or open composition I am interested 🙂
thanks again for your help
Best
Vivien
-
Hi Walter,
I’m taking the opportunity to bring up this post because it’s while searching for a script that I came across it
For my needs, I am looking for a script that could allow me to create a list (excel or other) of the exact names of the media present in a composition.
We used a lot of low resolution images for animation and I now need to ask for high resolution images with the exact names of the sources that are present in the composition
Having the information of the dimensions of each image is a plus but not obligatory.
The only difference with your script is that I would like to be able to select the composition and run the script 🙂
Do you think this is possible ?
Thank you in advance for your help
Best
Macviv
-
Vivien Lemaignan
December 27, 2020 at 6:33 pm in reply to: Delay time and offset rotation (Fanning Cards Animation)Hello Tomas,
I’m going to start this topic again because I’ll need a variant.
It’s for the opening of a card game 🙂
at the beginning all cards have a rotation value of 0.
The first card (control) starts its rotation from 0 to 45 with two keyframe on 1 second for example.
I would like the other cards to follow with a delay but that their rotation stops before 45° for example for the second card 40°, the third 35° etc…
I hope I’m clear enough 🙂
Thanks for your help
vivien
-
Thanks a lot Dan you are the best, it’s perfect!
All best
Vivien -
Thanks Dan
It’s almost perfect ☺
Is it possible to change the intensity of flickering with a slider or a value (time per second)?
Thanks a lot DanVivien
-
Sorry for my unclearness..
Yes the keyframe define the duration
I have 2 keyframe, the first at 0 % of opacity and the second at 100 %, one second later.
For the moment with my expression the flickering is only binary (0 or 100), i want progressive random flickering that is to say : (0, 20, 5, 80, 35, 40…. 100)
Is it clearer for you?
Thanks Dan
Vivien -
Thanks Dan to you answer,
I just want to have a progressive flickering between two keyframe 0 to 100 opacity for a progressive apparition.
Below this expression is running but the opacity value is just 0 or 100.Thanks for your help Dan
Vivien
//--Flicker On
//Make something flicker to 100% opacity instead of fading in
//Adjust this flicker frequency to your taste
flickerFrequency = 150;
op = value;
if(op > 0 && op < 100){
reverseAmt=100-transform.opacity;
wiggledAmt=wiggle(flickerFrequency,reverseAmt);
roundedAmt=Math.round((wiggledAmt/100));
roundedAmt*100;
}
//--end Flicker On