I'm not sure why you use the wiggle_x_pos and wiggle_y_pos slider for both the amplitude and frequency parameter of the wiggle. Wiggle_y = ctrleffect("wiggle_y_pos")("Slider") Wiggle_x = ctrl.effect("wiggle_x_pos")("Slider") ctrl = thisComp.layer("diamond_control") //just for neatness Also, there is no point multiplying it by 1, that does nothing. There is no need to add value to the wiggle result, because it is already added. So to use the result of the wiggle expression in combination with other values you have to get the result of the wiggle expression, and use that in your final result. This returns a 'wiggly' value based on the value of the property, it doesn't actually change the value of the property itself. It is actually a method of the property, so when you call wiggle() in say, the position property, what you're actually calling is (). Wiggle is a little bit confusing, in that it is not a function like Math.sin or random, that takes the value to be wiggled as a parameter. In your expression the two last lines both return a result, so the last one is what the value will be. Expressions can only ever return one result.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |