Add keyframe with expression value
Posted: May 6th, 2009, 1:09 pm
My problem is basic.
I have write à script who add a keyframe on position property at the current time.
But i have an expression running on position property and it add only the originla value and not the expression value.
Here is the code expression.
I know that i can translate expression into keyframes but it create too much keyframes (the expression create a still value).
So i can write in script to translate expression into keyframes and delete all keyframes except the current time keyframes. But how to convert expression in keyframes with script.
Maybe with AppCommand but which code (i have find CS3 appcommand code here, but i don't know if there is changes with CS4).
Edit : i have find the AppfindCommand command who could be a good way.
If anybody have a better solution.
Thanks.
I have write à script who add a keyframe on position property at the current time.
But i have an expression running on position property and it add only the originla value and not the expression value.
Here is the code expression.
I know that i can translate expression into keyframes but it create too much keyframes (the expression create a still value).
So i can write in script to translate expression into keyframes and delete all keyframes except the current time keyframes. But how to convert expression in keyframes with script.
Maybe with AppCommand but which code (i have find CS3 appcommand code here, but i don't know if there is changes with CS4).
Edit : i have find the AppfindCommand command who could be a good way.
If anybody have a better solution.
Thanks.