<div dir="ltr">Jimmy,<div><br></div><div>You can use `vtkSMPropertyHelper(glyph, "Scalars").SetInputArrayToProcess(vtkDataObject::POINT, "Diameters")`.</div><div><br></div><div>Utkarsh</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 23, 2017 at 5:19 AM, A . <span dir="ltr"><<a href="mailto:super_achie@hotmail.com" target="_blank">super_achie@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_3848495797963980450divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Dear community,</p>
<p><br>
</p>
<p>I'm having a hard time figuring out how to set the "Scalars" property of a glyph object with the C++ API.</p>
<p>In Python it's as easy as: glyph.Scalars=['POINTS', 'ScaleByThis']</p>
<p><br>
</p>
<p>In C++ I would assume something like: <span>vtkSMPropertyHelper(<wbr>glyph, "Scalars", true).Set("['POINTS', 'Diameters']");</span></p>
<p><span><br>
</span></p>
<p><span>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?</span></p>
<p><span><br>
</span></p>
<p><span>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
<span>😊</span></span></p>
<p><span><br>
</span></p>
<p>Best,</p>
<p>Jimmy</p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>