Here's a sample script:
from paraview.simple import *
s = Sphere()
t = TextureMaptoSphere()
r = Show()
texture = servermanager.rendering.ImageTexture()
texture.FileName = "/tmp/earth_texture.png"
r.Texture = texture
Render()
Utkarsh
On Thu, Jan 30, 2014 at 10:37 PM, Richard Townsend
wrote:
> Hi folks --
>
> Can someone give me some pointers on how to set up texture mapping from
> within pvpython? I'd like to map a 2-D image (stored in a uniform rectilinear
> grid poly object) onto the surface of a sphere. Unfortunately, the docs are
> both brief and garbled (esp for the TextureMaptoSphere filter), and I really
> can't figure out how to do this.
>
> thanks,
>
> Rich
>
> ___
> 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
___
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