Hi there,
I am trying to make an animation of a shape of instances that appears and disappears with a transition. See my attached file.
Basically I have the vertical position of the instances ty and I want to create a scale value s. If I could just do it with code I would say if ty > 2: s = 0 else s = 1.
In other words if ty is above a certain value scale goes to 0.
How do I do that with the result ending up in a chop channel called s that I can feed to my instances? I suppose I am missing something pretty basic here. forum post.2.toe (5.48 KB)
Yes that syntax it’s a bit obscure to me as well… not sure if that’s python or some sort of local slang spoken in Expression Chops land only I found it in the Operator Snippets.
also a Logic CHOP set to “Off When Outside Bounds” with Time Slice OFF might do what you are after.
give it a try and pick the most efficient or more adequate for your project.
Expressions are extremely useful, but in this case, you’ll get better performance running it through the Logic CHOP (timeslice off), with the upper and lower bounds set.