In python I change the scalar of my new model. this works fine at first, but when I regenerate the model and scalar values it does not show directly the second time. In the model UI I see the correct scalar being selected, but I have to first select another and then back to the one I prefer to make the changes have effect. The scalar values must be correct and python code to select the scalar as well, but I think I am missing something. An update maybe?
modelDisplayNode.SetActiveScalarName(“Normal”) # do. this to make the new/next scalar to show
I already tried calling Modified for the scalarArray, modelNode and DisplayNode.