I’m sure you can trigger it off with a script, but I’m not sure how to get the signal from the play button itself.
from pyfbsdk import *
import time
player_control = FBPlayerControl()
for each_take in FBSystem().Scene.Takes:
# Set current take
FBSystem().CurrentTake = each_take
FBSystem().Scene.Evaluate()
player_control.GotoStart()
player_control.Play()
time.sleep(0.1)
FBSystem().Scene.Evaluate()
while player_control.IsPlaying:
FBSystem().Scene.Evaluate()
else:
continue
The only annoying thing is, if I triggered the player_control.Play(), then queried the player_control.IsPlaying, it was also return False unless I added the time.sleep() in there… But then this made the UI appear to freeze throughout the takes so you can’t actually see the player playing