[Paraview] Representation input change does not work.
Berk Geveci
berk.geveci at kitware.com
Wed Sep 12 12:52:29 EDT 2007
Milan,
You cannot change the input to a representation. However, you should be able
to create a new representation and copy properties from the previous one
with Copy() method of Proxy.
-berk
On 9/12/07, Milan Frank <milan.frank at gmail.com> wrote:
>
> Hi everybody,
>
> I am experimenting with the new Python interface (via pvpython). I am
> trying to change the input of a representation. It seems it does not work.
> Following code should first show:
>
> - A "shrinked" sphere - OK,
> - A solid cone - Wrong, "shrinked" cone instead.
>
> I can not redirect the input of the representation but the input of the
> shrink filter can be changed. Is this an expected behavior?
>
> The example:
>
> sphere = pvsm.sources.SphereSource()
> cone = pvsm.sources.ConeSource ()
> shrink = pvsm.filters.ShrinkFilter()
>
> shrink.Input = sphere
>
> view = pvsm.CreateRenderView()
> rep = pvsm.CreateRepresentation(shrink, view)
> view.ResetCamera()
>
> for i in range(100):
> view.StillRender()
>
> shrink.Input = cone
> rep.Input = cone
>
> for i in range(100):
> view.StillRender()
>
> Any suggestions will be most appreciated. It is crucial for my work to be
> able to do the redirection ...
>
> Thanks,
> Milan.
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20070912/daccb193/attachment.html
More information about the ParaView
mailing list