servermanager.filters.Slice not available in pvpython
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In a python shell I can access the "Slice" filter:
dir(servermanager.filters) ['AMRContour', 'AMRDualClip', 'AlltoN', 'AnnotateTimeFilter', 'AppendAttributes', 'AppendDatasets', 'AppendGeometry', 'Balance', 'BlockScalars', 'CTHSurface', 'CacheKeeper', 'Calculator', 'CellCenters', 'CellDatatoPointData', 'Clean', 'CleantoGrid', 'ClientServerMoveData', 'Clip', 'ClipClosedSurface', 'ClipGenericDataset', 'ComputeDerivatives', 'Connectivity', 'ContingencyStatistics', 'Contour', 'ContourGenericDataset', 'ConvertSelection', 'Crop', 'Curvature', 'D3', 'Decimate', 'Delaunay2D', 'Delaunay3D', 'DescriptiveStatistics', 'Elevation', 'ExtractAMRBlocks', 'ExtractAttributes', 'ExtractBlock', 'ExtractCTHParts', 'ExtractCellsByRegion', 'ExtractEdges', 'ExtractGenericDatasetSurface', 'ExtractLevel', 'ExtractSelection', 'ExtractSelectioninternal', 'ExtractSubset', 'ExtractSurface', 'FFTOfSelectionOverTime', 'FOFSODHaloFinder', 'FeatureEdges', 'FlattenFilter', 'GenerateIds', 'GenerateQuadraturePoints', 'GenerateQuadratureSchemeDictionary', 'GenerateSurfaceNormals', 'GeometryFilter', 'Glyph', 'GlyphWithCustomSource', 'Gradient', 'GradientMagnitude', 'GradientOfUnstructuredDataSet', 'GridConnectivity', 'GroupDatasets', 'Histogram', 'ImageShrink', 'IntegrateVariables', 'InterpolatetoQuadraturePoints', 'IntersectFragments', 'IsoVolume', 'KMeans', 'LevelScalars', 'LinearExtrusion', 'LoopSubdivision', 'MPIMoveData', 'MaskPoints', 'MaterialInterfaceFilter', 'Median', 'MergeBlocks', 'MeshQuality', 'MinMax', 'MulticorrelativeStatistics', 'NormalGlyphs', 'OctreeDepthLimit', 'OctreeDepthScalars', 'OrderedCompositeDistributor', 'Outline', 'OutlineCorners', 'OutlineCurvilinearDataSet', 'OutlineGenericDataSet', 'ParticlePathlines', 'ParticleTracer', 'PlotData', 'PlotGlobalVariablesOverTime', 'PlotOnIntersectionCurves', 'PlotOnSortedLines', 'PlotOverLine', 'PlotSelectionOverTime', 'PointDatatoCellData', 'PolyLineToRectilinearGrid', 'PrincipalComponentAnalysis', 'ProbeLocation', 'ProcessIdScalars', 'ProgrammableFilter', 'PythonCalculator', 'QuadricClustering', 'RandomVectors', 'RectilinearGridConnectivity', 'RectilinearGridGeometryFilter', 'ReductionFilter', 'Reflect', 'ResampleWithDataset', 'Ribbon', 'RotationalExtrusion', 'ScatterPlot', 'Shrink', 'Slice', 'SliceGenericDataset', 'Smooth', 'StreamTracer', 'StreamTracerForGenericDatasets', 'StreamTracerWithCustomSource', 'Subdivide', 'SurfaceFlow', 'SurfaceVectors', 'TableFFT', 'TableToPoints', 'TableToStructuredGrid', 'TemporalCache', 'TemporalInterpolator', 'TemporalShiftScale', 'TemporalSnaptoTimeStep', 'TemporalStatistics', 'Tessellate', 'TessellateGenericDataset', 'Tetrahedralize', 'TextureMaptoCylinder', 'TextureMaptoPlane', 'TextureMaptoSphere', 'Threshold', 'Transform', 'TriangleStrips', 'Triangulate', 'Tube', 'UpdateSuppressor2', 'WarpByScalar', 'WarpByVector', 'class', 'delattr', 'dict', 'doc', 'format', 'getattribute', 'hash', 'init', 'module', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref'] dir(servermanager.filters.Slice) ['CellData', 'FieldData', 'FileNameChanged', 'GetCellDataInformation', 'GetDataInformation', 'GetFieldDataInformation', 'GetPointDataInformation', 'GetProperty', 'GetPropertyValue', 'Initialize', 'InitializeFromProxy', 'Input', 'ListProperties', 'PointData', 'SetPropertyWithName', 'SliceOffsetValues', 'SliceType', 'UpdatePipeline', 'UpdatePipelineInformation', '_Proxy__ConvertArgumentsAndCall', '_Proxy__GetActiveCamera', 'class', 'del', 'delattr', 'dict', 'doc', 'eq', 'format', 'getattr', 'getattribute', 'getitem', 'hash', 'init', 'iter', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', 'add_attribute']
But in a pvpython script it is unavailable:
test.py:
from paraview import servermanager
create a built-in connection
if not servermanager.ActiveConnection: connection = servermanager.Connect()
x = dir(servermanager.filters) print x x = dir(servermanager.filters.Slice) print x
pvpython test.py ['AMRDualClip', 'AMRDualContour', 'AllToN', 'Append', 'AppendAttributes', 'AppendPolyData', 'ArbitrarySourceGlyph', 'ArbitrarySourceStreamTracer', 'AttributeDataToTableFilter', 'Balance', 'BlockIdScalars', 'BrownianPoints', 'CTHPart', 'CTHSurface', 'CacheKeeper', 'Calculator', 'CellCenters', 'CellDataToPointData', 'CellDerivatives', 'CleanPolyData', 'CleanUnstructuredGrid', 'ClientServerMoveData', 'Clip', 'ClipClosedSurface', 'ContingencyStatistics', 'Contour', 'ConvertSelection', 'Curvatures', 'Cut', 'D3', 'DataSetSurfaceFilter', 'DataSetTriangleFilter', 'DecimatePro', 'Delaunay2D', 'Delaunay3D', 'DescriptiveStatistics', 'ElevationFilter', 'ExtractBlock', 'ExtractEdges', 'ExtractFieldDataOverTime', 'ExtractGeometry', 'ExtractGrid', 'ExtractHierarchicalDataSets', 'ExtractHierarchicalLevel', 'ExtractHistogram', 'ExtractSelection', 'ExtractSelectionOverTime', 'FFTSelectionOverTime', 'FeatureEdges', 'FlattenFilter', 'GenerateIdScalars', 'GenericClip', 'GenericContour', 'GenericCut', 'GenericGeometryFilter', 'GenericOutlineFilter', 'GenericStreamTracer', 'GenericTessellator', 'GeometryFilter', 'Glyph', 'Gradient', 'GradientMagnitude', 'GridConnectivity', 'GroupDataSets', 'HaloFinder', 'ImageClip', 'ImageShrink', 'IntegrateAttributes', 'IntegrateFlowThroughSurface', 'IntersectFragments', 'IsoVolume', 'KMeans', 'LevelIdScalars', 'LinearExtrusionFilter', 'LoopSubdivisionFilter', 'MPIMoveData', 'MaskPoints', 'MaterialInterfaceFilter', 'Median', 'MergeBlocks', 'MeshQuality', 'MinMax', 'MulticorrelativeStatistics', 'NormalGlyphs', 'OctreeDepthLimit', 'OctreeDepthScalars', 'OrderedCompositeDistributor', 'OutlineCornerFilter', 'OutlineFilter', 'PCAStatistics', 'PVConnectivityFilter', 'PVExtractSelection', 'ParticlePathLines', 'ParticleTracer', 'PlotAttributes', 'PlotOnIntersectionCurves', 'PlotOnSortedLines', 'PointDataToCellData', 'PolyDataNormals', 'PolyLineToRectilinearGrid', 'Probe', 'ProbeLine', 'ProbePoint', 'ProcessIdScalars', 'ProgrammableFilter', 'PythonCalculator', 'QuadraturePointInterpolator', 'QuadraturePointsGenerator', 'QuadratureSchemeDictionaryGenerator', 'QuadricClustering', 'RectilinearGridConnectivity', 'RectilinearGridGeometryFilter', 'ReductionFilter', 'ReflectionFilter', 'RibbonFilter', 'RotationalExtrusionFilter', 'ScatterPlot', 'ShrinkFilter', 'SmoothPolyDataFilter', 'StreamTracer', 'Stripper', 'StructuredGridOutlineFilter', 'Subdivide', 'SurfaceVectors', 'TableFFT', 'TableToPolyData', 'TableToStructuredGrid', 'TemporalCache', 'TemporalInterpolator', 'TemporalShiftScale', 'TemporalSnapToTimeStep', 'TemporalStatistics', 'TessellatorFilter', 'TextureMapToCylinder', 'TextureMapToPlane', 'TextureMapToSphere', 'Threshold', 'TimeToTextConvertor', 'TransformFilter', 'TriangleFilter', 'TubeFilter', 'UnstructuredGradient', 'UpdateSuppressor2', 'WarpScalar', 'WarpVector', 'class', 'delattr', 'dict', 'doc', 'format', 'getattribute', 'hash', 'init', 'module', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref'] Traceback (most recent call last): File "test.py", line 11, in x = dir(servermanager.filters.Slice) AttributeError: 'PVModule' object has no attribute 'Slice'