property speed expression/script
in the expressions the position property has speed attribute but not in the script. Is there a way to get the speed of a property in script? And can we get the avarage speed exactly?
in the expressions the position property has speed attribute but not in the script. Is there a way to get the speed of a property in script? And can we get the avarage speed exactly?
You could have your script temporarily add an expression, and then harvest the speed value and delete the expression. Or, you could approximate it by using .valueAtTime() with your target time and again with the same time plus a tiny increment and do the math to calculate the difference divided by the time interval. Something like that. But no, you don't have those tools directly available in scripting.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.