<div dir="ltr"><div>Hi Anton,<br><br>RenderView1.ViewSize = [1000, 1000]<br><br></div>Best wishes,<br>Louie<br><br><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 July 2014 12:33, Anton Shterenlikht <span dir="ltr"><<a href="mailto:mexas@bris.ac.uk" target="_blank">mexas@bris.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've recorded this python script with PV Trace.<br>
However, the resulting animation window is small.<br>
What do I need to edit to make the window, e.g. 1000x1000 pixels?<br>
<br>
Thanks<br>
<br>
Anton<br>
<br>
<br>
# use defined variables, no indent allowed, start at col 1<br>
<br>
infile  = "z.xdmf"  # name of XDMF file<br>
picfile = "z.png"   # image output file<br>
vidfile = "z.ogv"   # animation output file<br>
trlo    = -4        # lower threshold<br>
trhi    = 0         # upper threshold<br>
<br>
# end of user variables<br>
<br>
try: paraview.simple<br>
except: from paraview.simple import *<br>
paraview.simple._DisableFirstRenderCameraReset()<br>
<br>
# load XDMF file<br>
z_xdmf = XDMFReader( FileName=infile )<br>
<br>
AnimationScene1 = GetAnimationScene()<br>
AnimationScene1.EndTime = 10.0<br>
AnimationScene1.PlayMode = 'Snap To TimeSteps'<br>
<br>
z_xdmf.Sets = []<br>
z_xdmf.Grids = ['T0', 'T30', 'T60', 'T90', 'T120', 'T150', 'T180', 'T210', 'T240', 'T270', 'T300']<br>
z_xdmf.PointArrays = ['crack']<br>
<br>
RenderView1 = GetRenderView()<br>
RenderView1.CenterOfRotation = [127.5, 127.5, 95.5]<br>
<br>
DataRepresentation1 = Show()<br>
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
DataRepresentation1.Slice = 95<br>
DataRepresentation1.SelectionPointFieldDataArrayName = 'crack'<br>
DataRepresentation1.ScalarOpacityUnitDistance = 1.762150384296635<br>
DataRepresentation1.Representation = 'Outline'<br>
DataRepresentation1.ScaleFactor = 25.5<br>
<br>
RenderView1.CameraPosition = [127.5, 127.5, 883.8540784668097]<br>
RenderView1.CameraFocalPoint = [127.5, 127.5, 95.5]<br>
RenderView1.CameraClippingRange = [590.4255376821416, 1039.4068896438118]<br>
RenderView1.CameraParallelScale = 204.0410497914574<br>
<br>
Threshold1 = Threshold()<br>
Threshold1.Scalars = ['POINTS', 'crack']<br>
Threshold1.AllScalars = 0<br>
Threshold1.ThresholdRange = [ trlo, trhi ]<br>
<br>
DataRepresentation2 = Show()<br>
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
DataRepresentation2.SelectionPointFieldDataArrayName = 'crack'<br>
DataRepresentation2.ColorArrayName = ('POINT_DATA', 'crack')<br>
DataRepresentation2.ScalarOpacityUnitDistance = 1.88988157484231<br>
DataRepresentation2.ScaleFactor = 0.2<br>
<br>
a1_crack_PVLookupTable = GetLookupTableForArray( "crack", 1, RGBPoints=[-3.0, 0.23, 0.299, 0.754, 1073741822.0, 0.865, 0.865, 0.865, 2147483647.0, 0.706, 0.016, 0.15], VectorMode='Magnitude', NanColor=[0.25, 0.0, 0.0], ColorSpace='Diverging', ScalarRangeInitialized=1.0 )<br>

<br>
a1_crack_PiecewiseFunction = CreatePiecewiseFunction( Points=[-3.0, 0.0, 0.5, 0.0, 2147483647.0, 1.0, 0.5, 0.0] )<br>
<br>
DataRepresentation2.ScalarOpacityFunction = a1_crack_PiecewiseFunction<br>
DataRepresentation2.LookupTable = a1_crack_PVLookupTable<br>
<br>
a1_crack_PVLookupTable.NanColor = [1.0, 1.0, 0.0]<br>
a1_crack_PVLookupTable.RGBPoints = [-3.0, 1.0, 1.0, 1.0, 365072217.5, 0.0, 0.0, 1.0, 730144438.0, 0.0, 1.0, 1.0, 1073741822.0, 0.0, 1.0, 0.0, 1438814042.5, 1.0, 1.0, 0.0, 1803886263.0, 1.0, 0.0, 0.0, 2147483647.0, 0.878431, 0.0, 1.0]<br>

a1_crack_PVLookupTable.ScalarOpacityFunction = a1_crack_PiecewiseFunction<br>
a1_crack_PVLookupTable.ColorSpace = 'RGB'<br>
<br>
RenderView1.CameraPosition = [127.49999999999966, 127.5, 883.8540000000002]<br>
RenderView1.CameraClippingRange = [590.4254600000002, 1039.4068100000004]<br>
<br>
# custom background<br>
<br>
RenderView1.UseGradientBackground = 1<br>
RenderView1.Background2 = [0.0, 0.0, 0.17254901960784313]<br>
RenderView1.Background = [0.32941176470588235, 0.34901960784313724, 0.42745098039215684]<br>
<br>
AnimationScene1.AnimationTime = 10.0<br>
AnimationScene1.NumberOfFrames = 100<br>
AnimationScene1.PlayMode = 'Sequence'<br>
<br>
CameraAnimationCue1 = GetCameraTrack()<br>
CameraAnimationCue1.AnimatedProxy = RenderView1<br>
CameraAnimationCue1.Mode = 'Path-based'<br>
<br>
TimeAnimationCue1 = GetTimeTrack()<br>
#TimeAnimationCue1.Enabled = 0<br>
<br>
AnimationScene1.NumberOfFrames = 100<br>
AnimationScene1.PlayMode = 'Sequence'<br>
<br>
KeyFrame3658 = CameraKeyFrame( FocalPathPoints=[127.5, 127.5, 95.5], FocalPoint=[127.5, 127.5, 95.5], PositionPathPoints=[127.5, 127.5, 883.854, 740.1661272984488, 127.5, 591.6272475657036, 898.6265736288988, 127.5, -68.40801310294381, 485.4052264316708, 127.5, -606.9285573699966, -193.1524595153794, 127.5, -624.6972157143753, -633.9914888582924, 127.5, -108.54102948275286, -510.2917835834677, 127.5, 558.8828547857805], ClosedPositionPath=1, ParallelScale=204.0410497914574, Position=[127.5, 127.5, 883.8540784668097] )<br>

<br>
KeyFrame3659 = CameraKeyFrame( ParallelScale=204.0410497914574, Position=[127.5, 127.5, 883.8540784668097], KeyTime=1.0, FocalPoint=[127.5, 127.5, 95.5] )<br>
<br>
CameraAnimationCue1.KeyFrames = [ KeyFrame3658, KeyFrame3659 ]<br>
WriteAnimation( vidfile , Magnification=1, Quality=2, FrameRate=6.000000)<br>
<br>
Render()<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>