Save animation to a gif or other file

How to save a actor’s animation to a gif file by my application? Are there some interfaces in panda would be called?

And how to simulate a mouse event?

You can use to create a series of PNG’s, then use a program like ImageReady or the GIMP to convert that into a GIF. See the apiref for information.

To simulate a mouse event, call messenger.send(“mouse1”).

Thank you pro-rsoft.

Simulate mosue press/release, I have known using mouse1/mouse1-up etc.

But how about mosue move?

You’d need to use base.movePointer(0, x, y) to move the mouse, I guess.