Hi,
I get an error when I want to use the ArrowGlyphFilter in the Python Shell in ParaView 6.0.0:
Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'ArrowGlyphFilter' is not defined
The plugin is loaded and I use the same command that is shown in the trace. I have used the phython-code before in PV 5.12 without errors. What am I missing (or is it a bug)?
import_invapts.xyz (1.2 KB)
I am including the data I am using in this post, if anybody wants to test my code with it. Here is the code I use up to the error:
import re
myfile = VisItXYZReader(FileName='C:/path_to_datafile/import_invapts.xyz')
myfile.Meshes = ['mesh']
myfile.PointArrays.SelectAll()
rv1 = GetActiveViewOrCreate('RenderView')
Disp = Show(myfile, rv1,'GeometryRepresentation')
calc = Calculator(registrationName='calc',Input=myfile)
calc.Function = '(var0-coordsX)*iHat+(var1-coordsY)*jHat+(var2-coordsZ)*kHat'
calc2 = Calculator(registrationName='calc2',Input=calc)
calc2.Function = '1/sqrt(Result_X^2+Result_Y^2+Result_Z^2)'
calc2.ResultArrayName = 'Invscale'
glyphstr='Arrow/0.1/0.35/10/0.03/10'
glyphprops=list(map(str,glyphstr.split('/')))
arrowGlyphFilter1 = ArrowGlyphFilter(registrationName='ArrowGlyphFilter1', Input=calc2)
Cheers,
Venke