For reference, the normal calculator currently doesn't allow creating 2 component arrays. If iHat, jHat, and/or kHat are specified in the expression it makes the resulting array a 3 component array.<br><br><div class="gmail_quote">
On Tue, Sep 27, 2011 at 9:57 AM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Thu, Sep 22, 2011 at 2:32 PM, Felipe Bordeu<br>
<<a href="mailto:felipe.bordeu@ec-nantes.fr">felipe.bordeu@ec-nantes.fr</a>> wrote:<br>
> Hello,<br>
><br>
> I'm trying to generater a Texture coordinates array using the position of my<br>
> points.<br>
> For this I used the python calculator with this formula, (With the Result<br>
> Array Name: Texture Coordinates)<br>
><br>
> coordsX/256*iHat+coordsY/1024*jHat<br>
><br>
> the problem is that the python calculator keep putting an extra column in my<br>
> data (like 0*kHat). In the information tab, I can see 3 components in my new<br>
> field. So the Apply Texture is grey and I cant use it.<br>
<br>
Is that a _python_ calculator expression or a normal calculator filter<br>
expression?<br>
<br>
It looks like the normal calculator to me and it may well be that you<br>
can not create two component arrays with it. Additionally, it doesn't<br>
have a way to mark the array as the active scalars. Just assigning the<br>
name won't do it.<br>
<br>
I recommend using the python filter instead and then calling<br>
point_data.SetTCoords("nameofyourarray") instead.<br>
<br>
good luck!<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>