Demarc Johnson
Forum Replies Created
-
Demarc Johnson
December 1, 2017 at 5:04 am in reply to: How to trigger animation by markers (in and out) ?Yes, there is a way to do this. In the marker comment section add your the dialogue.
var numK = thisComp.marker.nearestKey(time)// Use thisComp if the markers are in composition, else pick whip the layer the markers reside
var markerNum = numK.index;
var isMarkerNum = time >= numK.time ? markerNum : markerNum - 1; //This is getting the marker index number
thisComp.marker.key(isMarkerNum).comment
For Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
Demarc Johnson
November 30, 2017 at 2:32 am in reply to: Animating shape size based on the value set with the Layer SliderHere is the file…
11919_11916exampleconverted.zipFor Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
Demarc Johnson
November 30, 2017 at 1:12 am in reply to: Animating shape size based on the value set with the Layer SliderOkay, I think I have a full understanding of what you’re trying to do. In the Slider Options Animation set the slider to go from 0 to 100. 0 representing the minimum you want the shape to be and 100 being the max length. Don’t forget to change the first keyframe to 0 and the second to 100.
Sorry, if I had the older version of AE I would have sent the file back with this post.In the size property
var animate = thisComp.layer("Slider Options (Animation)").effect("Slider Control")("Slider");
var max = thisComp.layer("Slider Options").effect("Slider Control")("Slider"); //This is the slider that is going set the max range in the linear method.
var minMax = linear(animate, 0, 100, 146, max);
//With this linear method you are animating from the min to max range so if you change max length the animation will do the same
[minMax, 146]In the position property
var animate = thisComp.layer("Slider Options (Animation)").effect("Slider Control")("Slider") / 2;
var max = thisComp.layer("Slider Options").effect("Slider Control")("Slider");
var minMax = linear(animate, 0, 100, 146, max);
[minMax, 146]For Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
Demarc Johnson
November 29, 2017 at 8:06 pm in reply to: Animating shape size based on the value set with the Layer SliderThanks for subscribing. I think I might have a solution if I get what you saying. From what I gather from the second post is you want the length to be control by one slider. I was able to do so by using the slider with the size property and the anchor point.
In the anchor point...
transform.anchorPoint - effect("Slider Control")("Slider") / 2In the size property (inside content property and then inside rectangle path)...
content("Rectangle Path 1").size + effect("Slider Control")("Slider")For Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
Demarc Johnson
November 29, 2017 at 1:15 pm in reply to: Animating shape size based on the value set with the Layer SliderI can help, but first I would need to know how you animated the circle shape because the method I used to animate the circle shape might be different from the way you do it, and that will determine how to connect the slider control to the animation.
For Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
Demarc Johnson
November 22, 2017 at 9:43 pm in reply to: Camera to affect a layer’s Gaussian Blur and OpacitySorry, when I pasted the code creative cow’s forum changed it. In line 5 paste this:
if( z >= 50 && z <= 60 ){For Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
Demarc Johnson
November 22, 2017 at 2:54 am in reply to: Camera to affect a layer’s Gaussian Blur and OpacityYou have to you use the && sign to do this conditional. When you use the && sign then both side of the condition must be true in order to run the first block of code or the else block of code will be ran.
var cameraPosZ = thisComp.layer("Camera 1").transform.position[2]; //Change this by pick whipping the your camera's z position
var z = transform.position[2] - cameraPosZ;
var blurAmount = 30; //Change this to the amount of blur you want
var onBlur;
if( z >= 50 && z <= 60 ){
onBlur = blurAmount;
} else {
onBlur = 0;
}
onBlurFor Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
You can do that by using arrays and index.
Just be mindful of order of layers when using index. If you have any other layers in the composition make sure that the those layers is underneath the image layers.var list = [100, 50, 33]; //Change these numbers in this array to whatever you need the opacity to be and you can add or remove the amount of numbers too. Remember when adding or removing that each number is separated by commas.
list[index - 1];For Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
You can use the sourceRectAtTime() method with a shape layer to the letters to line up your lower thirds.
Align your shape layer so that upper left corner is align with the upper left corner of the text layer.In your shape layer's size property put in:var txt = thisComp.layer("text");
var x = txt.sourceRectAtTime(time, true).width;
var y = txt.sourceRectAtTime(time, true).height;
[x, y]The shape position layer ****INSIDE YOUR SHAPE PATH / UNDERNEATH THE SIZE PROPERTY**** add this expression
content("Rectangle 1").content("Rectangle Path 1").size / 2;For Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw -
You can try this site:
https://www.javascriptobfuscator.com/Javascript-Obfuscator.aspxIt’s used for encrypting Javascript and I don’t know how well it works with ExtendScript or Expression, but still worth the try.
For Expression Tutorials:
https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw