Jimmy, You can use `vtkSMPropertyHelper(glyph, "Scalars").SetInputArrayToProcess(vtkDataObject::POINT, "Diameters")`.
Utkarsh On Mon, Oct 23, 2017 at 5:19 AM, A . <super_ac...@hotmail.com> wrote: > Dear community, > > > I'm having a hard time figuring out how to set the "Scalars" property of a > glyph object with the C++ API. > > In Python it's as easy as: glyph.Scalars=['POINTS', 'ScaleByThis'] > > > In C++ I would assume something like: vtkSMPropertyHelper(glyph, > "Scalars", true).Set("['POINTS', 'Diameters']"); > > > But this unfortunately doesn't work. I cannot seem to find any examples or > documentation on this. If someone has an example or the relevant > documentation for setting this property, could you please share it with me? > > > It would be great if you could let me know how I can find out how to set a > certain property of a source or filter, so that I don't need to ask such > questions in the future 😊 > > > Best, > > Jimmy > > _______________________________________________ > 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 > >
_______________________________________________ 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