[Paraview] [EXT] Re: Stupid question on Programmable Source
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Fri Oct 23 09:41:08 EDT 2015
Should work just fine for vtkUnstructuredGrid grid too. Are you
creating the output yourself by any chance? You should be using the
"output" variable predefined for you. e.g. attached state file works
just fine for me with git/master, but I am sure it should work with
4.4.
On Fri, Oct 23, 2015 at 7:47 AM, Dennis Conklin
<dennis_conklin at goodyear.com> wrote:
> Utkarsh,
>
> I probably should have mentioned that I am making an unstructured grid, not a multiblockdataset.
>
> I get
>
> vtkCommonDataModelPython.vtkUnstructuredGrid object has no attribute 'CellData'
>
> Dennis
>
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
> Sent: Thursday, October 22, 2015 5:15 PM
> To: Dennis Conklin <dennis_conklin at goodyear.com>
> Cc: Paraview (paraview at paraview.org) <paraview at paraview.org>
> Subject: [EXT] Re: [Paraview] Stupid question on Programmable Source
>
> Dennis,
>
>> Would it be more efficient make this a Programmable Filter instead (with no
>> input?) so that I can use the CellData.append?
>
> You should be able to do the following just fine in a Programmable Source too:
>
> output.CellData.append(....)
>
> Utkarsh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.pvsm
Type: application/octet-stream
Size: 77265 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151023/6398349f/attachment.obj>
More information about the ParaView
mailing list