Metahuman pose not updating when iterating programatically through sequencer

In a blueprint I am trying to iterate through the current open sequence in editor from the first frame to the last and I am writing out the tranform of a specific camera and the tranform of a Metahuman bone. It looks like the metahuman is not updating properly. I get the right values for the camera but for the Metahuman I always get the value of the first frame.

If I do single frame, instead of iterating, the results are correct, so it is like somehow the metahuman is not evaluating properly when I change the current frame.

What is the right way to iterate over the sequence so that the metahuman is updated correctly?

Thanks

What command are you using to iterate / change frames?

Is this in an Editor Utility Widget or running a python script?

Tony

Hi Tony.

It is an Editor utility widget iterating over the sequence and calling a python script per frame.

I got it to work using a timer, but let me know if you think there’s a better way to do this

Thanks!

Ok, i was going to say try using a delay of .01 or something small. I suspect Unreal needs a break in the script to do its updating, and a solid loop will not allow that update to happen. Timer is also a great way for the engine to have some processing time.

Glad its working.

Tony