[Paraview] python + animation + widget
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Wed Sep 2 12:43:49 EDT 2009
Or you can change the active source to be the sphere from python and
the widget will disappear :).
> SetActiveSource(sph)
Utkarsh
On Wed, Sep 2, 2009 at 11:44 AM, pat marion<pat.marion at kitware.com> wrote:
> I don't think there is a way to do it currently, for the reason you
> pointed out. The widget visibility is not controlled by a property of
> the representation as it probably should be. I'm not sure if there is
> a bug report/feature request filed for this already.
>
> If the rendering is local, you can do an evil hack like this...
>
> GetRenderView().GetRenderWindow().GetRenderers().GetFirstRenderer().GetViewProps().GetItemAsObject(6).SetVisibility(0)
> Render()
>
> Pat
>
> On Wed, Sep 2, 2009 at 11:23 AM, Stephane PLOIX<stephane.ploix at edf.fr> wrote:
>>
>> Hi,
>>
>> I would like to switch off the visibility of a widget while creating an
>> animation with python.
>>
>> force instance, if I use the script below :
>>
>> sph = Sphere()
>> transform = Transform(sph)
>> Show(transform)
>> Render()
>>
>> the box widget is visible, how to turn the visibility off from python?
>> My pb is that this widget is associated via the 'Hint' mechanism, and I do
>> not see how to acces the created widget from the servermanager and/or proxy.
>>
>> Stephane
>>
>> -----------------------------------------------------------------------------
>> Stéphane Ploix
>> EDF R&D
>> 1 avenue du Général de Gaulle
>> F-92141 Clamart Cedex
>> Phone : +33 (0)1 47 65 51 10
>> Email : stephane.ploix 'at' edf.fr
>> _______________________________________________
>> 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
>
More information about the ParaView
mailing list