As I demonstrated above, how to track the user's changes to the parameter animation in a custom ObjectPlugin, or receive a message when the user changes the animation. Do I need to listen to the above events in ObjectData::Message()?Can someone help me?
There is no really way of doing it. The only way is to keep track of what is going on. the number of keys, the position, values etc.
When setDparameter is called you need to compare and update your data.
You could just store the dirty state or a lot more information. Keep in mind that you can have mutiple tracks for the position. This is tricky and long to do but possible.
To detect the value changing you can override the SetDParameter(...) method. Not sure about an animated value though.
As kent said you must override SetDParameter. This function should be caled who/whatever have changed the value of the attribut.
You can have information on this post about the difference with SetDParameter and MSG_DESCRIPTION_POSTSETPARAMETER
As the post suggest, you can have more information in our manual about SetDParameter and Messages specially MSG_DESCRIPTION_POSTSETPARAMETER
@kbar and @m_magalhaes, Thank you for your reply.
I know that parameter changes can be determined by overriding SetDParameter().
But I don't know how to override SetDParameter() to know whether the user has added / deleted keyframes, or changed the value of keyframes (whether the small button next to the parameter is pressed). Thank you again for your help.