![]() ![]() 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! 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 |