[Paraview] Value Error: ColorArrayName - ParaView 3.98

ck156626 at fh-muenster.de ck156626 at fh-muenster.de
Mon Feb 25 03:40:59 EST 2013


Hi Andy,

thanks for your support. The function
self.newSlice.GetDataInformation().GetNumberOfPoints() returns zero points
then the functions fails. But it is kind of wired because I use always the
same origin and normal vector and sometimes it is successful. Ok, now I
know the problem and I try to fix it.

Thanks & regards,

Christian


> I can't say for sure but my guess is that the slice you created doesn't
> intersect your geometry and thus you have 0 points and you won't get any
> point data to pseudo-color by. The other possibility is that the slice
> filter hasn't been updated yet.
>
> You can try something like
> self.newSlice.GetDataInformation().GetNumberOfPoints() to see if any
> points
> exist in the filter's output. Make sure to call
> self.newSlice.UpdatePipeline() before doing that though.
>
> Andy
>
> On Sun, Feb 24, 2013 at 9:57 AM, Christian Klinge
> <ck156626 at fh-muenster.de>wrote:
>
>> Hello together,****
>>
>> ** **
>>
>> I wrote a short python script to create slices with local coordinate
>> systems in ParaView. Sometimes then the script should create a new slide
>> with defined parameter about scalar factor, origin and normal vector,
>> the
>> function returns a value error.  The message told me that the point data
>> array cannot be found in the simulation. I tested the function with a
>> lot
>> of different parameters and recognizes that the function does not fail
>> because of the variance of parameters. After repeating of calling the
>> function with the same parameters, the function worked sometimes and it
>> fails. So now I don’t know if it is a mistake of myself or it is a bug
>> in
>> ParaView. ****
>>
>> Maybe you can give me a short answer about it. Thank you all.****
>>
>> ** **
>>
>> I used ParaView on a Linux machine calling the pvbatch with the script
>> as
>> parameter from the shell. The script is append at the end of this
>> mail.***
>> *
>>
>> ** **
>>
>> Regards,****
>>
>> ** **
>>
>> Christian****
>>
>> _______________________________________________
>> 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>




More information about the ParaView mailing list