You are missing a RequestInformation Script to indicate the dimensions of the 
grid you wish to create.

Set the type of the Output Data to "vtkStructuredGrid"

you will need, at the minimum, the following two sections of python code

in the "Script"

mbds = inputs[0]

block0 = mbds.GetBlock(0)

output.ShallowCopy(block0)

(make sure to toggle the Advanced Properties to make the second text input 
widget to appear, and fill in the "RequestInformation Script" with the 
following text:


executive = self.GetExecutive()

outInfo = executive.GetOutputInformation(0)

mbds = inputs[0]

block0 = mbds.GetBlock(0)

dims = block0.GetDimensions()

outInfo.Set(executive.WHOLE_EXTENT(), 0, dims[0]-1 , 0, dims[1]-1 , 0, 
dims[2]-1)

==============
That's all!

Jean/CSCS


_______________________________________________
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

Reply via email to