Utkarsh,
I think you have me confused with a real programmer! ;- )
I am just trying to write a Programmable Filter in python and I'm lost.
I want to write an xml plugin that will put up a list of all the cell variables
and let the user select from then and then have the names of those variables
available in my python script within the Programmable Filter. I'm hoping
this can be similar to plugins I have written with hardcoded variable names
where I've used something like:
Properties = dict(
Sector_Angle = True)
def RequestData():
def process_block(block):
#
#
if (Sector_Angle):
Maybe this isn't possible at this low level, but how would I put up the list
and then what would I have in my RequestData script that I could branch on.
Thanks for your patience.
Dennis
-----Original Message-----
From: Utkarsh Ayachit [mailto:[email protected]]
Sent: Tuesday, October 03, 2017 4:07 PM
To: Dennis Conklin <[email protected]>
Cc: Paraview ([email protected]) <[email protected]>
Subject: Re: [EXT] Re: [Paraview] Details of XML filter with lists of input
arrays
> So, after the user chooses some variables, are the chosen variable names in
> "input_array"?
> Or does "input_array" contain True or False based on which he chose, in
> which case where are the corresponding names of the variables?
When user selects variables, he's doing it on the "VolumeArrays"
property. Thus the selection is provided to the VTK filter via calling the
command specified on the "VolumeArrays" property. In the case of the
ExtractCTHParts files, this is done via `AddVolumeArrayName` and
`RemoveVolumeArrayNames` API.
_______________________________________________
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
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview