Connect ( ds_host = None, ds_port = 11111, rs_host = None, rs_port = 11111, timeout = 60 ) ¶Ĭreates a connection to a server. Map for this representation paraview.simple. Set separate to True in order to use a separate color If none is provided the display properties for the active source will be the value returned by GetDisplayProperties() function. This will automatically setup the color maps and others ColorBy ( rep = None, value = None, separate = False ) ¶ ClearSelection ( proxy = None ) ¶Ĭlears the selection on the active source. It is an error to assign the same view to multiple layouts. If no layout exists, thenĪ new layout will be created. If layout is None, then either the active layout or anĮxisting layout on the same server will be used. AssignViewToLayout ( view = None, layout = None, hint = 0 ) ¶Īssigns the view provided (or active view if None) to the PointData AssignLookupTable ( arrayInfo, "Cool to Warm" ) paraview.simple. Track = GetAnimationTrack ( "Center", 0, sphere ) or arrayInfo = source. RangeOveride is provided as the range to use instead of the range of the LutName is the name for the transfer function preset. Range is determined using the info object provided. AssignLookupTable ( arrayInfo, lutName, rangeOveride = ) ¶Īssign a lookup table to an array by lookup table name.ĪrrayInfo is the information object for the array. This is a utility function that, given a reader and a viewĪnimates over all time steps of the reader. AnimateReader ( reader = None, view = None ) ¶ AddViewLink ( viewProxy, viewProxyOther, linkName = '' ) ¶Ĭreate a view link between two view proxies.Ī view link is an extension of a proxy link, that also do If a link with the given name already exists it will be removed first. AddSelectionLink ( objProxy, objProxyOther, linkName, convertToIndices = True ) ¶Ĭreate a selection link between two filters proxies.Ī name must be given so that the link can be referred to by name. It also creates links for the AxesGrid proxy property. AddRenderViewLink ( viewProxy, viewProxyOther, linkName = '', linkCameras = False ) ¶Ĭreate a view link between two render view proxies. If linkName is empty, a default one is created for registration. See vtkSMProxyLink.LinkProxyPropertyProxies AddProxyLink ( proxy1, proxy2, linkName = '', link = None ) ¶Ĭreate a link between two proxies and return its name.Īn instance of a vtkSMProxyLink subclass can be given, otherwise Makes a new vtkLight and adds it to the designated or active view. Name already exists it will be removed first. So that the link can be referred to by name. AddCameraLink ( viewProxy, viewProxyOther, linkName = '' ) ¶Ĭreate a camera link between two view proxies. Show ( shrink ) # Render the scene Render () paraview.simple. sphere = Sphere ( ThetaResolution = 16, PhiResolution = 32 ) # Apply a shrink filter shrink = Shrink ( sphere ) # Turn the visibility of the shrink object on. Out_filename = output_filename_root + "%0.4d" % index +".From paraview.simple import * # Create a new sphere proxy on the active connection and register it # in the sources group. In_filename = input_filename_root + "%0.4d" % index+".pvtu" Number_of_pvtu = directory(pvtu_input_directory,'.pvtu') """Choose input/output directory and filenames""" If file.endswith(extension): # eg: '.txt' I run the script using execfile("SCRIPTNAME") in Paraview -> Tools -> Python Shell. I had a similar problem with pvtu files and solved it with the script below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |