-
weird problem with velocity and keyframes on every frame
I’ve got a physics simulation made in Newton. For those unfamiliar with Newton, it bakes to keyframes and typically puts one keyframe on every frame for each layer that it animates.
I am trying to set up Trapcode Particular to emit based on the velocity of one of my Newton layers.
I am able to easily acquire the velocity in an expression with position.velocity[0] and position.velocity[1]. I was converting those into absolute values, adding together and then multiplying by a factor to control intensity.
This worked great, and showed up as a nice graph in the graph viewer, when I had the expression results turned on. However, where the graph viewer would show a positive number value for the result of the expression (and a nice squiggly line on my graph), the actual output of the expression would remain at 0. In other words – the graph viewer and the expression output in the property field disagree with each other.
The graph also has a stair step quality to it, which has led me to believe that this is because there is a keyframe on every frame in my source layer, with no space between them. I’m not sure if this is a bug, or an expected behavior.
I was able to work around it by making a null and setting its position to position.smooth of the source layer. Then I pulled the velocity off of that null to drive my other expression. This works fine, but it’s clunky.
Any ideas on a more elegant solution?
Thanks!
