Adira Kessler
Forum Replies Created
-
Adira Kessler
February 11, 2021 at 2:57 pm in reply to: Keep expressions intact when moving a control layer to another compWhat there are expressions in multiple comps?
-
Adira Kessler
September 1, 2020 at 9:50 pm in reply to: How to Combine Two Sliders to One Expression (or Two Expression to One Property)The same applies to the brightness expressions.
Beautiful
thisComp.layer("Flares Animation!").effect("Show/Hide Slider")("Slider")MeaningfulReveal = thisComp.layer("Flares Animation!").effect("Brightness Slider (Enter)")("Slider").valueAtTime (time - .96);
Conceal = thisComp.layer("Flares Animation!").effect("Brightness Slider (Exit)")("Slider");if (thisComp.layer("Flares Animation!").effect("Slider Switch!")("Checkbox").value>0) {Reveal}
else {Conceal}PowerfulReveal = thisComp.layer("Flares Animation!").effect("Brightness Slider (Enter)")("Slider").valueAtTime (time - 2);
Conceal = thisComp.layer("Flares Animation!").effect("Brightness Slider (Exit)")("Slider");if (thisComp.layer("Flares Animation!").effect("Slider Switch!")("Checkbox").value>0) {Reveal}
else {Conceal}MessageReveal = thisComp.layer("Flares Animation!").effect("Brightness Slider (Enter)")("Slider").valueAtTime (time - 2.75);
Conceal = thisComp.layer("Flares Animation!").effect("Brightness Slider (Exit)")("Slider");if (thisComp.layer("Flares Animation!").effect("Slider Switch!")("Checkbox").value>0) {Reveal}
else {Conceal} -
Adira Kessler
September 1, 2020 at 9:35 pm in reply to: How to Combine Two Sliders to One Expression (or Two Expression to One Property)I cannot believe I figured it out! I will do my best to explain the idea behind the code, and then I’ll just give you the code for your specific situation. The secret to combining two sliders to one property is: Conditional Statement
The secret formula is the if/else statement and a checkbox control with two keyframes (on then off).
So, you need to have your sliders equal to a value. the value can be written as anything, a letter a word, a number. I wouldn’t use numbers because it might look confusing.v = first slider;
z = second slider;if (thisComp.layer(“LayerName”).effect(“CheckBoxName”)(“Checkbox”).value>0) {v}
else {z}Now, for the other flares, since they’re in different positions (on the y-axis), but you can’t use the “temp =” and the “[temp, 812]” so you need to add the {value + [0,0]}. Oddly, for this situation, I found that I have to subtract 287 from the original number. I don’t know why. I had to play around with it until I got it in the right spot.
Okay, I don’t know if that made sense that way, so here is what it looks like.
Beautiful
Enter = thisComp.layer("Flares Animation!").effect("Position Control (Enter)")("Point");
Exit = thisComp.layer("Flares Animation!").effect("Position Control (Exit)")("Point");if (thisComp.layer("Flares Animation!").effect("Slider Switch!")("Checkbox").value>0) {Enter}
else {Exit}
MeaningfulEnter = thisComp.layer("Flares Animation!").effect("Position Control (Enter)")("Point").valueAtTime (time - .6);
Exit = thisComp.layer("Flares Animation!").effect("Position Control (Exit)")("Point").valueAtTime (time - .32);if (thisComp.layer("Flares Animation!").effect("Slider Switch!")("Checkbox").value>0) {Enter + [0, 525]}
else {Exit + [0, 525]}
PowerfulEnter = thisComp.layer("Flares Animation!").effect("Position Control (Enter)")("Point").valueAtTime (time - 1.4);
Exit = thisComp.layer("Flares Animation!").effect("Position Control (Exit)")("Point").valueAtTime (time - .57);if (thisComp.layer("Flares Animation!").effect("Slider Switch!")("Checkbox").value>0) {Enter + [0, 1001]}
else {Exit + [0, 1001]}
MessageEnter = thisComp.layer("Flares Animation!").effect("Position Control (Enter)")("Point").valueAtTime (time - 1.65);
Exit = thisComp.layer("Flares Animation!").effect("Position Control (Exit)")("Point").valueAtTime (time - .8);if (thisComp.layer("Flares Animation!").effect("Slider Switch!")("Checkbox").value>0) {Enter + [0,1513]}
else {Exit + [0, 1513]}I really hope this helps.
-
Adira Kessler
September 1, 2020 at 8:11 pm in reply to: Link rotation to two different slider controlsI know you posted this like 8 years ago, I hope that by now you have found the solution but in case not, I figured it out. The secret to combining two sliders [or other expression controls] to one property is: Conditional Statement
The secret formula is the if/else statement and a checkbox control with two keyframes (on then off).
So, you need to have your sliders equal to a value. the value can be written as anything, a letter a word, a number. I wouldn’t use numbers because it might look confusing.v = (pick whip to the first slider);
z = (pick whip to the second slider);if (thisComp.layer(“LayerName”).effect(“CheckBoxName”)(“Checkbox”).value>0) {v}
else {z}v = thisComp.layer("LayerName").effect("1stExpressionControlName")("Point");
z = thisComp.layer("LayerName").effect("2ndExpressionControlName")("Point");if (thisComp.layer("LayerName").effect("CheckBoxName")("Checkbox").value>0) {v}
else {z}