Idx viewer bake from operator

functionally the same, but less verbosity inside the big loop - please test your edge cases before accepting PR