Hello James I don't believe this is a bug. I have used the ProgrammableSource and was able to render a grid without any difficulty. What is missing in your procedure is most likely setting the WholeExtent.
try loading this script and you'll get a rendered image paraview --script=state.py ----------------- Jean M. Favre Swiss National Supercomputing Center
try: paraview.simple except: from paraview.simple import * RenderView1 = GetRenderView() ProgrammableSource1 = ProgrammableSource( guiName="ProgrammableSource1", OutputDataSetType='vtkStructuredGrid', PythonPath='', ScriptRequestInformation='grid = self.GetStructuredGridOutput()\nnx,ny = 25,25\ngrid.SetWholeExtent(0,nx-1,0,ny-1,0,1)\n', Script='grid = self.GetStructuredGridOutput()\npoints = vtk.vtkPoints()\nnx,ny = 25,25\nfor i in xrange(nx):\n for j in xrange(ny):\n points.InsertNextPoint(i/5.0,j/5.0,0.0)\n\ngrid.SetDimensions(nx,ny,1)\ngrid.SetPoints(points)\n' ) DataRepresentation1 = Show() DataRepresentation1.Representation = 'Outline' Render()
_______________________________________________ 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
