Hi!
Strange, it should work. Try to test expression and the output line just in a Python console - this check is much faster.
Then, if it works, try to
print() all intermediate results and watch afrender process output to trace parser work.
You can also take a look at
mantra parser, it works with ALF_PROGRESS too:
https://github.com/CGRU/cgru/blob/maste ... /mantra.py
btw,
Afanasy parser has not only
percent property, it has
frame and
percentframe properties:
https://github.com/CGRU/cgru/blob/maste ... ser.py#L18
As i see in your output, you are catching frame, not a frame percentage. If frames per task are set correctly and a parser caught frame number, it can calculates a total percent itself:
https://github.com/CGRU/cgru/blob/maste ... tch.py#L43
And this keyframe is used for it:
https://github.com/CGRU/cgru/blob/maste ... atch.py#L7
So better you to fix your hbatch output, this way there is no need to fix native parser.
If afserver knows frames per task and frame, you can use sub-task dependence:
https://cgru.readthedocs.io/en/latest/a ... endsubtask
https://cgru.readthedocs.io/en/latest/s ... dependence
And start to render not finished simulation.