Script writing issue
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 |
Python Basics
Hi,
if you are looking for the Basics of Python look here: https://www.researchgate.net/publica...t_and_ParaVIEW Have Fun! |
All times are GMT -4. The time now is 19:32. |