On 15/02/2013 at 00:33, xxxxxxxx wrote:
Hello All, I wonder how it is possible to get the previous position of an Object after I moved it.
I thought I could do an undo and check the Position and than compare it. But it is returning always the current position.
Any Clues? Thank you in advance.
Here is the Code I tried:
selec = doc.GetActiveObject()
newpos=selec.GetAbsPos()
c4d.CallCommand(12105) # Undo
c4d.EventAdd()
oldpos=selec.GetAbsPos()
print "newpos:", newpos
print "oldpos:", oldpos