[Paraview] Custom filters in Python

Berk Geveci berk.geveci at kitware.com
Fri Feb 13 15:29:16 EST 2009


I finally have an answer for this. You first export the custom proxy
to an xml file. Then you do:

servermanager.ProxyManager().LoadCustomProxyDefinitions("<filename here>")
servermanager.updateModules()

After this, you can create your custom proxy like any other proxy:

custom_filter = servermanager.filters.Foo()

-berk

On Mon, Jan 26, 2009 at 4:49 PM, Jacques Papper
<jacques.papper at gmail.com> wrote:
> Haha :)
> Ok well, if it's not too complicated let me know and I'll try to help.
> Jacques
>
> 2009/1/26 Berk Geveci <berk.geveci at kitware.com>
>>
>> That's a good question (i.e. I have no idea :-) ). I'll investigate it
>> this week and implement a solution if not already possible.
>>
>> -berk
>>
>> On Sat, Jan 24, 2009 at 2:01 PM, Jacques Papper
>> <jacques.papper at gmail.com> wrote:
>> > How do I access that through a python script ? (In batch)
>> >
>> > 2009/1/24 Berk Geveci <berk.geveci at kitware.com>
>> >>
>> >> Tools -> Manage Custom Filters
>> >>
>> >> On Sat, Jan 24, 2009 at 5:44 AM, Jacques Papper
>> >> <jacques.papper at gmail.com> wrote:
>> >> > I can't find a previous email on this topic and therefore I have to
>> >> > ask
>> >> > :
>> >> > How do I load a custom filter into pvpython ?
>> >> > Thanks,
>> >> > Jacques
>> >> > _______________________________________________
>> >> > ParaView mailing list
>> >> > ParaView at paraview.org
>> >> > http://www.paraview.org/mailman/listinfo/paraview
>> >> >
>> >> >
>> >
>> >
>
>


More information about the ParaView mailing list