From what I see here, I don’t know if it is possible to work with progress command in context of eval or fill block. When I was using Popcorn Fractal on a image with dimension of 8192x8192, and setting points to 96, I looked at the bottom of the gui screen with no indication of how far am I at in percentage. All I know that it is going to create 6B points and no way to know at where I am at.
So, my question is that how can I work with progress in context of eval or fill? It would be useful for fractal filters.
I’d say this is possible, using the run() function of the math evaluator, as you can invoke any kind of ‘pipelined’ command with it.
Could you try something as:
Just don’t call run() for every iteration of the loop. This is a quite ‘heavy’ function in the sense that it recreates a new instance of it’s own G’MIC interpreter and run a pipeline for it, definitely not something you want to do for every pixel and for every n in your example.
It’s probably better to have something as
!(iter%10000)?run('progress...');
where iter is some variable that goes from 0 to something.
Looks like a classic mistake to me, as !n%100000 is equivalent to (!n)%100000, which is definitely not the same as !(n%100000) (that is what you want here).
(!n) in your case will be either 1 (first iteration of n) or 0 (otherwise), and thus (!n)%100000 is almost always equal to 0.