![]() ![]() In case of dropDown list with fixed available choices I’ve tried with Īnd everything seems OK, but I would like to have only valid choices for the file I’m reading and not a fixed list. This method seems to be wrong as I see in the GUI the dropDown list but it’s gray and not clickable. Where self._availableAxis is assigned in RequestInformation (I’ve tried both with a list of strings and with a vector of strings). I’ve tried with these lines in my plugin: information_only="1") The Python Calculator allows a user to apply calculations that are available in Python. These are the Python Calculator and the Programmable Filter. ![]() I’m going on with my plugin based on PythonAlgorithms methods (according to Utkarsh suggestion) and now I’m trying to put a dropDownList which available choices are to be populated at runtime (depending on the content of the file I’m going to read). ParaView has two filters that give a user access to python math functions as well as the underlying VTK library. This will be called `RequestInformation` but before # this should be setup in `RequestInformation`, if being read ![]() After which something like the following should do the information_only="1") If the tests pass, then this should make it into 5.7 release. That got me down the path of fixing the issue (and doing some other code cleanups). It turns out that it wasn’t supported by the current implementation of PythonAlgorithms as well! ParaView/Simple ParaView 3 Python Filters < ParaView Contents 1 Examples of Filters Programmed using the Python Programmable Filter 2 CSV Reader (Source) 3 CSV Reader (Source) 4 Tetrahedra Volume (Filter) 5 Tetrahedra Radius (Filter) 6 Flip Tetrahedra (Filter) 7 Helix (Source) 8 Producing Data with Timesteps (Source) 8. I’ve tried to find a method from python script to access to my class attributes but I haven’t found a way. To define the limits of the slider I use an IntRangeDomain specifier in the xml that points to another information_only IntVectorProperty with an associated command GetRange that is a method I’ve added to my new class derived from vtkPythonProgrammableFilter class (using the macro vtkGetVector2Macro) to retrieve a Range vector added as a private attribure to my class.Įverythng seems to be ok if I add a C++ RequestInformation function to populate my Range attribute, but my question is: is it possible to populate this attribute through a python RequestInformation script instead of a C++ function? It would be very preferable as with a few h5py lines I can retrieve needed values instead of using libhdf5 from C++ function. I’ve already written the requestData python script that generates an unstructured grid item by reading one of the objects described in the input file by mean of an integer index passed to the script using a SetParameter command associated in the xml file with an IntVectorProperty. This reader should have a GUI to choose with a slider an item in a numbered set of objects and the min-max of this slider should dinamically be set depending on the input file content. I’m trying to write a compiled plugin based on python programmable filter (following the example in ) to build a reader of a specific hdf5 file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |