Dear Michael,
What you try to do is possible, but sadly still really poorly documented. You were almost there with your implementation, I hope it was not too much pain to get there.
You can find a working example here:
Unfortunately, we don't yet have the nice visualization of the model in ScalismoUI, where you could explore the intensity variations using sliders. To show the intensity variation, you will have to obtain random samples from the model (which are ScalarVolumeMeshFields) and visualize them manually using ui.show.
I hope this helps to get you unstuck.
Best wishes
Marcel