Run Script when animation is finished

Run Script when animation is finished

d.barboni
Contributor Contributor
390 Views
2 Replies
Message 1 of 3

Run Script when animation is finished

d.barboni
Contributor
Contributor

HI to all, 

does anybody know how to execute a python script ad the end of and animation?

example when the animation of a closing door is finisced i want to execute something called via Python.

 

Thanks in advance

Davide

 

0 Likes
Accepted solutions (1)
391 Views
2 Replies
Replies (2)
Message 2 of 3

seiferp
Community Manager
Community Manager
Accepted solution

Hey @d.barboni,

 

one way of doing it. would be to add your script to a variant set and your curve animation block to a clip. By pressing the + in the top left of the Clip Maker you can choose Variant Set to create a marker on the timeline. Select your Variant Set with the script and the frame you want to insert the Marker that triggers your VSet that executes the script. Attached an example that toggles the wireframe rendering at the end of the door open animation and resets it when the animation is played backwards.

 

ScriptVariantinClipMaker.png

 

Hope this helps

0 Likes
Message 3 of 3

d.barboni
Contributor
Contributor
Thanks a Lot!
0 Likes