Anyway the code seems to work only for the first component (component_idx = 0), while it doesn’t work for different components (it changes only the range coming from the array object). Even if I use the legacy ColorByArrayComponent function I obtain the same wrong result.
The RemoteView is key to make sure your VTK server code is correct. The LocalView is still wip and is more likely to miss something. If the RemoteView works when you interact with the scene, that probably means you forget to call update() on your view via the controller or direct method ref.
RemoteView is working, thanks!
When usingLocalView I was calling update() on my views but the SetVectorComponent seems to do nothing (only changes the color range via SetRange).
Anyway, I can deal with RemoteView for my task. Thanks again Sebastien!