|
[Sponsors] |
October 2, 2017, 07:47 |
Script writing issue
|
#1 |
New Member
Niko
Join Date: Oct 2017
Posts: 1
Rep Power: 0 |
Hi everyone,
I am working on some scripts that will produce series of movies recently. I have tried to write a loop that will make ParaView to save those avis. What I was trying to accomplish is included in the last few lines of code which I present here: for x in Lista: Show(x,renderView1) # get animation scene animationScene1 = GetAnimationScene() # get active view renderView1 = GetActiveViewOrCreate('RenderView') # uncomment following to set a specific view size # renderView1.ViewSize = [1225, 568] # current camera placement for renderView1 renderView1.CameraPosition = [-544.6754288786356, -17.0, 5.5] renderView1.CameraFocalPoint = [1.0, -17.0, 5.5] renderView1.CameraViewUp = [0.0, 0.0, 1.0] renderView1.CameraParallelScale = 141.23119343827693 name=str(x)+'.avi' # save animation SaveAnimation('C:/Users/Analiza1/Desktop/3d fMRI/movie/name', renderView1, ImageResolution=[1224, 568], FrameRate=40, FrameWindow=[0, 19]) Hide(x, renderView1) Lista is a list of object that each one is supposed to be visible on each movie. What I am trying to do is to make a loop that makes different movie names. As you probably know, this code doesn't work. Maybe someone knows better approach to this issue? Sorry for bad english, Regards, N |
|
October 23, 2017, 04:37 |
Python Basics
|
#2 |
New Member
Join Date: Jan 2017
Location: Austria
Posts: 20
Rep Power: 9 |
Hi,
if you are looking for the Basics of Python look here: https://www.researchgate.net/publica...t_and_ParaVIEW Have Fun! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 11:04 |
[General] “Upload” vtk data from client to server in paraview script | Jack001 | ParaView | 0 | March 8, 2018 07:27 |
[mesh manipulation] Dynamic remeshing (mequite) in parallel not working [foam-extend-4.0] | Peter_600 | OpenFOAM Meshing & Mesh Conversion | 4 | August 1, 2017 06:07 |
[snappyHexMesh] snappyHexMesh can't create a fine Mesh from stl from Rhinoceros | Taghi | OpenFOAM Meshing & Mesh Conversion | 13 | May 4, 2017 15:48 |
[ICEM] create .msh file from replay script | Gigi | ANSYS Meshing & Geometry | 3 | May 27, 2015 06:54 |