[Paraview] Constant coloring of surfaces

Berk Geveci berk.geveci at kitware.com
Fri Aug 8 15:34:09 EDT 2008


They are equivalent as long as the Input property is not repeatable.
If it is, GetData() should return a list.

-berk

On Fri, Aug 8, 2008 at 3:32 PM, Robert Maynard <robertjmaynard at gmail.com> wrote:
> Just a quick side question, which of the following syntax is 'correct'?
>
>  rep.Input[0].Proxy
> or
>  rep.Input.GetData().Proxy
>
> Berk Geveci wrote:
>
> Not just from the GUI. You can achieve it using GUI+python:
>
> * Turn off all lights from the Render View Options
> * Turn on Ambient of the representation from python with something like:
>
> v = servermanager.GetRenderView()
> v.Represenations[0].Ambient = 0.5
>
> Of course, I was lazy and picked the first representation of the first
> view. You can get a collection of all views with GetRenderViews() and
> iterate until you find the one you want. Which I just realized is not
> easy because views are not named. I will create a feature request for
> that. Once you have  a view, you get iterate  over its representations
> until you find one that has your source/filter as input. Something
> like:
>
> pm = servermanager.ProxyManager()
> myfilter = pm.GetProxy("sources", "filter name")
> for rep in representations:
>  if rep.Input[0].Proxy == myfilter:
>   rep.Ambient = 0.5
>   break
>
> -berk
>
> On Fri, Aug 8, 2008 at 4:02 AM,  <Thierry.CARRARD at cea.fr> wrote:
>
>
> Hi,
>
>
>
> Is it possible to render a 3D surface with a constant colour (without any
> lighting at all) ?
>
>
>
> Thanks,
>
> Thierry
>
>
>
> ________________________________
>
> De : paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] De
> la part de MirJafar Ali
> Envoyé : jeudi 7 août 2008 23:38
> À : paraview at paraview.org
> Objet : [Paraview] ParaView Crashes with PLY files
>
>
>
> Hi,
>
> Has anybody experienced that paraview immediately crashes with ASCII
> PLY ?
>
> I tried with model bunny.ply from Stanford University.
>
> Any help ?
>
> MirJafar
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list