On 30/08/2016 at 09:04, xxxxxxxx wrote:
Hello all,
Got another little dumb question for you guys, if you don't mind:
One of my ObjectData plugins I made for our pipeline keeps track of a few other objects' positions and behaves accordingly. When I move one of these object's position and then undo it, my plugin refuses to acknowledge the change in position until the user clicks somewhere (anywhere) in C4D.
I've thrown in everything but the kitchen sink under the MSG_DOCUMENTINFO_TYPE_UNDO Message() type--that is, catching when the user makes an undo and trying to sync up and send update messages around--but it will forever and always return the old position until a click is made, even while python scripts (edit: tags, I mean) immediately print (for testing) the correct position post-undo.
I've tread twiddling with priorities, too, but nothing gives :\ Does anyone know the proper way to accomplish this in an ObjectData plugin?
As usual, thanks very much for any advice :heart: