Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About tiscavalcanti

  • Rank
  1. footage = comp("Footage").layer(1); IP = footage.inPoint; OP = footage.outPoint; IP+time%(OP-IP); I got it!
  2. Your information is quite useful, I will delve into the links, and in fact, I use video program that uses expressions based on JS ... Look, I just figured out a way to sort this out ... maybe it'll work ... Do you know how I can make a variable go from 0 to 22, and when it reaches 22, return to 0? Type a slide inside the number 22, that is, from 0 to 22, it results in 22, and from 22 to 44 it also results in 22, as if the variable was reset every time it was 22, then 23 would be 1 , and 45, 1 also, and so on.
  3. I need to make a code like this: Initial value 11 Final value 33 I want to insert the code on the property time (that changes) of the program I use So I want the code to interpolate through the time between numbers 11 and 33, meaning this code will move 22 seconds in time I want that when the code results in the final value, that is, arrive at the value 33 It is reinitiated, thus causing an infinite loop. Going from 11 to 33 in 22 seconds and then repeating on and on. There is a codebase that may allow time to be used in a dynamic way: linear (t, tMin, tMax, value1, value2) There it is (time, start time, end time, initial value, final value) Maybe this code is useful ... I do not know. It is an interpolation code
  4. Thanks for your time, my friend. This forum like ever, very efficient. Work very well.
  5. I want the value of a property of my program, to which this code is entered, is defined by the value of another property that is between two other properties, ie three properties, I do not even want Math.max or Math. min, but the value is between these two.
  6. Thanks, but I believe which Math.median() don't work in After Effects Software by expression. I get a error ("Math.median is not a function"). I could use if/else but, in my case, the values are not fixed, this value that I show is just example. How i can do this between if/else?
  7. I want to get the value that is in the center between three values. For example: Math."middle"(34.78, 56.12, 45.54) Result in: 45.54 How I can do this?
  8. Okay! I will make some tests. Thank you very, very much!
  9. I want a code which switch a property, that is, toggle between two fixed values; (Checkbox - 1 or 0) If a determined condition is true. For example: a = 1; b = 2; if (a > "CheckBox switch for 1 (if was at 0) or switch for 0 (if was at 1)"; else 0; If "ELSE" is satisfied, and get back to "IF" satisfied; The Checkbox will be with the inverse value of what was before "ELSE". That's what I want. In another example. I will create a situation, step by step: Checkbox is at 0. "IF" is satisfied. Checkbox is at 1. "ELSE" is satisfied. Checkbox is at 0 ("ELSE" always is 0). "IF" is satisfied again. Checkbox is at 0 again.
  10. I want to know, if is there any way to javascript change (switch) between two values (1 and 0) in a Checkbox, A code without resulting in a fixed value, its function becomes only toggle value. For example, I need put this in a Property: if (thisComp.layer("Logo").transform.opacity==100) "My Checkbox" (switch) else 0; After Effects Expression
  • Create New...