Xinlai Ni
Forum Replies Created
-
The above expression makes the second hand tick at the beginning of the second, I think in reality, you want it to tick at the end of every second, just replace the linear expression with this one
linear(time, wholeSecond + 0.8, wholeSecond + 1, startAngle, startAngle + anglePerSecond)Xinlai Ni
Software Engineer, Google Inc. -
Simplest thing is you can make it rotate from the beginning of N second to N+0.2 second (smoothly) so within every second, it first rotates very quickly, then take a rest for the remaining 0.8 sec, here is the rotation property’s expression for that (assuming you’ve already moved the anchor point of the hand to one of its end at the clock face center):
wholeSecond = Math.floor(time);
rotateDuration = 0.2;
anglePerSecond = 6; // 360 / 60
startAngle = wholeSecond * anglePerSecond;linear(time, wholeSecond, wholeSecond + rotateDuration, startAngle, startAngle + anglePerSecond)
Xinlai Ni
Software Engineer, Google Inc. -
Expression can’t achieve what you have described, a script can do it fairly well. In the script:
1. Create a new empty comp that will contain all 64 clips.
2. Create an integer array of 64 elements, randomly permute their indices, e.g., array[0] = 24, array[1] = 3, …, array[63]=5.
3. Loop to create layer and set their in-points, pseudo code:
var lastInPoint = 0;
for (i = 0; i < 64; ++i) { // create layer using clip[array[i]] // set this layer's inPoint to lastInpoint // lastInpoint += this clip's duration // place this layer to the comp in the desired 'grid' position } The above script has the limitation that the comp will show only one clip at a time with all other clips invisible, as opposed to be showing the first/last frame. Xinlai Ni Software Engineer, Google Inc. -
Xinlai Ni
October 19, 2009 at 3:53 pm in reply to: Cant open a project in AE which has chinese namesWindows has always been nice to me for opening unicode filenames, but have you tried changing the windows locale to Chinese for the time you do your editing?
Xinlai Ni
Software Engineer, Google Inc. -
unselect the little speaker icon to the left of the layer you want to mute.
Xinlai Ni
Software Engineer, Google Inc. -
Xinlai Ni
October 18, 2009 at 5:10 pm in reply to: Rendering out a composition with layers hidden still seems to include them?It’s not a surprise to me, it depends on how the renderer is internally implemented and optimized. At least a hidden layer requires some computation to decide that it doesn’t need rendering.
Xinlai Ni
Software Engineer, Google Inc. -
Xinlai Ni
October 18, 2009 at 7:08 am in reply to: Rendering out a composition with layers hidden still seems to include them?Size of the rendered file is determined by the resolution of the composition and the compression, not by how many layers have been used in the composition — it’s the final array of rendered pixels that count for the file size. But the more layers you have, the more rendering time it needs because the computation required by the rendering will be more with more complex layer set up.
Xinlai Ni
Software Engineer, Google Inc. -
You gotta specify the [x, y] value for each individual layer somehow.
Say, on each layer, add an expression Point Control, called “EndPos”, and for each of the 50 layers, assign the desired value.
Then use this for its position expression:
linear(thisComp.layer("extrude").effect("Control")("Slider"), 0, 100, startPos, thisLayer.effect("EndPos"))where startPos is the same starting position of all these layers.
Xinlai Ni
Software Engineer, Google Inc. -
Andrew Kramer has this wonderful tutorial where he created a pseudo-3D ring with specular highlight and shadows
https://www.videocopilot.net/tutorials/the_ring/Xinlai Ni
Software Engineer, Google Inc. -
Organize your comp as the following:
layer 1-5 of 5 turned-on bulb images;
layer 6-10 of 5 turned-off bulb images;
arrange layers so the pairs (1, 6), …, (5, 10) are completely overlapped.
layer 11, control layer with “slider” effect.then copy the following expression to layer 1-5’s opacity property:
sliderValue = thisComp.layer(“Control”).effect(“Slider”)(1);
sliderValue >= index ? 100 : 0then copy the following expression to layer 6-10’s opacity property:
100 – thisComp.layer(index – 5).opacityone catch:
you may have visibility problem if, say bulb 2 image overlaps with bulb 5 images, but normally you wouldn’t.Xinlai Ni
Software Engineer, Google Inc.