How to get multiple scalars using Probe Volume With Model?

I’ve started using Probe Volume With Model to view values from image volumes displayed on a surface model. I know from seeing some other use cases for scalars associated with models that a single model can have multiple scalar overlays, and that you can choose between them using the “Active Scalar” dropdown in the Models module Display–>Scalars section. So, I expected that I could probe different registered volumes with the same model and store each as separate scalars in the model, but this isn’t working as expected. The Probe Volume With Model interface allows you to choose a name for the scalar array, and that name shows up as a selectable option to display one the probing is executed, but any prior existing scalar array seems to be removed.

Steps to reproduce:

  1. Probe volume1 with model1 as both the input and output model, and with scalar1 as the output array name. (After this, scalar1 is displayable on the model)
  2. Probe volume2 with model1 as both the input and output model, and with scalar2 as the output array name.

After step 2, scalar2 is displayable on the model, but scalar1 is gone and is no longer an option to display. Is this the expected behavior? Is there a different way to achieve this, where both scalar1 and scalar2 are options to be displayed?

I realize a workaround could be to duplicate model1 and just have one scalar on each model, but it seems like this shouldn’t be necessary because models can support multiple scalars.

Good point. I think that’s just a limitation of the module. The code is not super complex, and probably it’s just a matter of figuring out the options for vtkProbeFilter.

1 Like

OK, I’ll try to dig into the code a bit. I was hoping there was just something I was missing… Thanks for taking a look @pieper

Probably it is enough to call Pass*ArraysOn(). I don’t see any particular drawback of preserving the previous arrays, and I can see that it can be useful, so it should be fine to enable it.

1 Like