Hi, In order to color blocks by "vtkBlockColors", I just need to call SetScalarColoring() like below: vtkSMPVRepresentationProxy::SetScalarColoring(repr->getProxy(), "vtkBlockColors", vtkDataObject::FIELD);
This may work even if "vtkBlockColors" array info is not contained in vtkPVDataSetAttributesInformation although I do skip in this case. Thanks, yoshimi > Hello all, > > I have a question over making a ParaView plugin. I try to set coloring > with "vtkBlockColors" for a multi-block data set by conventional > method: > ----- > vtkPVDataSetAttributesInformation* attrInfo = > dataInfo->GetFieldDataInformation(); > vtkPVArrayInformation* arrayInfo = attrInfo->GetArrayInformation(name); > vtkSMPVRepresentationProxy::SetScalarColoring(repr->getProxy(), > "vtkBlockColors", vtkDataObject::FIELD); > ----- > But the above arrayInfo is always NULL though there exists a > "vtkBlockColors" in field selection combo box with ParaView. > > I'd like to know the right way to do it. > > Kind regards, > yoshimi _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview