View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013562ParaView(No Category)public2012-10-24 17:452014-08-29 10:59
ReporterAlan Scott 
Assigned ToUtkarsh Ayachit 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versiongit-master 
Target VersionFixed in Version4.2 
Summary0013562: Trace output is still too complex
DescriptionThe output of the trace recorder is still too complex.For instance, just opening can.exo, clipping can.exo and outputing a screenshot gives the following:

paraview.simple._DisableFirstRenderCameraReset()

can_ex2 = ExodusIIReader( FileName=['/ascldap/users/wascott/demos/training-2011/can.ex2'] )

AnimationScene1 = GetAnimationScene()
can_ex2.NodeMapArrayStatus = []
can_ex2.FaceVariables = []
can_ex2.ElementVariables = []
can_ex2.XMLFileName = 'Invalid result'
can_ex2.FaceSetResultArrayStatus = []
can_ex2.PointVariables = []
can_ex2.FaceSetArrayStatus = []
can_ex2.FaceMapArrayStatus = []
can_ex2.FileRange = [0, 0]
can_ex2.SideSetResultArrayStatus = []
can_ex2.ElementSetArrayStatus = []
can_ex2.EdgeVariables = []
can_ex2.FilePrefix = '/ascldap/users/wascott/demos/training-2011/can.ex2'
can_ex2.FilePattern = '%s'
can_ex2.EdgeSetArrayStatus = []
can_ex2.SideSetArrayStatus = []
can_ex2.GlobalVariables = []
can_ex2.NodeSetArrayStatus = []
can_ex2.NodeSetResultArrayStatus = []
can_ex2.ElementMapArrayStatus = []
can_ex2.EdgeSetResultArrayStatus = []
can_ex2.ModeShape = 0
can_ex2.EdgeMapArrayStatus = []
can_ex2.ElementSetResultArrayStatus = []

AnimationScene1.EndTime = 0.004299988504499197
AnimationScene1.PlayMode = 'Snap To TimeSteps'

RenderView1 = GetRenderView()
DataRepresentation1 = Show()
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.50000762951094835]
DataRepresentation1.SelectionPointFieldDataArrayName = 'ACCL'
DataRepresentation1.SelectionCellFieldDataArrayName = 'EQPS'
DataRepresentation1.ScalarOpacityUnitDistance = 1.3901072164734267
DataRepresentation1.ExtractedBlockIndex = 2
DataRepresentation1.ScaleFactor = 1.9778103828430176

can_ex2.ElementVariables = ['EQPS']
can_ex2.EdgeBlocks = []
can_ex2.GlobalVariables = ['KE', 'XMOM', 'YMOM', 'ZMOM', 'NSTEPS', 'TMSTEP']
can_ex2.ElementBlocks = ['Unnamed block ID: 1 Type: HEX', 'Unnamed block ID: 2 Type: HEX']
can_ex2.PointVariables = ['DISPL', 'VEL', 'ACCL']
can_ex2.FaceBlocks = []

RenderView1.CenterOfRotation = [0.21706008911132812, 4.0, -5.1109471321105957]

Clip1 = Clip( ClipType="Plane" )

RenderView1.CameraPosition = [26.727331453767619, 47.392258849831641, -14.671509654021632]
RenderView1.CameraViewUp = [-0.72829461172147369, 0.31033434863638742, -0.61096607974084538]
RenderView1.CameraFocalPoint = [0.21706008911132837, 4.0, -5.1109471321105957]
RenderView1.CameraClippingRange = [32.656896290425244, 75.887793235471776]
RenderView1.CameraParallelScale = 13.391445890217907


Clip1.Scalars = ['POINTS', 'GlobalNodeId']
Clip1.ClipType.Origin = [0.21706008911132812, 4.0, -5.1109471321105957]
Clip1.ClipType = "Plane"

active_objects.source.SMProxy.InvokeEvent('UserEvent', 'ShowWidget')


RenderView1.CameraClippingRange = [28.608376396572261, 80.984045156024806]

DataRepresentation2 = Show()
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.50000762951094835]
DataRepresentation2.SelectionPointFieldDataArrayName = 'ACCL'
DataRepresentation2.SelectionCellFieldDataArrayName = 'EQPS'
DataRepresentation2.ScalarOpacityUnitDistance = 1.4054169055205019
DataRepresentation2.ExtractedBlockIndex = 2
DataRepresentation2.ScaleFactor = 1.8427192211151124

DataRepresentation1.Visibility = 0

active_objects.source.SMProxy.InvokeEvent('UserEvent', 'HideWidget')


WriteImage('/ascldap/users/wascott/junkDir/dede1.png')


RenderView1.CameraClippingRange = [34.855653876801135, 68.148166531428643]

Render()

<<<<End trace>>>>


TagsPythonTrace
ProjectSandia
Topic Namerefactor_python_tracing_2
Typefeature
Attached Files

 Relationships

  Notes
(0032997)
Utkarsh Ayachit (administrator)
2014-07-09 21:18
edited on: 2014-07-09 21:27

Here's the new trace obtained when the "Trace Options" is set to "Record only *user-modified* properties"

===============================================================================
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()

# create a new 'ExodusIIReader'
canex2 = ExodusIIReader(FileName=['/home/utkarsh/Kitware/ParaView3/ParaViewData/Data/can.ex2'])

# get animation scene
animationScene0 = GetAnimationScene()

# update animation scene based on data timesteps
animationScene0.UpdateAnimationUsingDataTimeSteps()

# Properties modified on canex2
canex2.ElementBlocks = ['Unnamed block ID: 1 Type: HEX', 'Unnamed block ID: 2 Type: HEX']

# get active view
renderView0 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView0.ViewSize = [1387, 490]

# show data in view
canex2Display = Show(canex2, renderView0)

# reset view to fit data
renderView0.ResetCamera()

# create a new 'Clip'
clip0 = Clip(Input=canex2)

# show data in view
clip0Display = Show(clip0, renderView0)

# hide data in view
Hide(canex2, renderView0)

# current camera placement for renderView0
renderView0.CameraPosition = [-2.710781103500976, 54.76568001982184, -14.66921317411778]
renderView0.CameraFocalPoint = [0.21706008911132824, 3.9999999999999996, -5.110947132110594]
renderView0.CameraViewUp = [0.0037652271876943344, -0.18481988657662107, -0.9827651970791549]
renderView0.CameraParallelScale = 13.391445890217907

# save screenshot
SaveScreenshot('/tmp/sample.png', view=renderView0, magnification=1, quality=100)

#### saving camera placements for all active views

# current camera placement for renderView0
renderView0.CameraPosition = [-2.710781103500976, 54.76568001982184, -14.66921317411778]
renderView0.CameraFocalPoint = [0.21706008911132824, 3.9999999999999996, -5.110947132110594]
renderView0.CameraViewUp = [0.0037652271876943344, -0.18481988657662107, -0.9827651970791549]
renderView0.CameraParallelScale = 13.391445890217907

#### uncomment the following to render all views
# RenderAllViews()
# alternatively, if you want to write images, you can use SaveScreenshot(...).

===============================================================================

(0033058)
Utkarsh Ayachit (administrator)
2014-07-22 08:32

---------------------------------------------
Topics merged into master:
        0014874_fix_scalar_opacity_unit_distance
        14834_fix_representation_update
        dashboard-warnings-20140721
        refactor_python_tracing_2
(0033116)
Alan Scott (manager)
2014-07-28 19:56

Very nice.

Tested master, Linux, remote server.

 Issue History
Date Modified Username Field Change
2012-10-24 17:45 Alan Scott New Issue
2014-07-04 21:48 Utkarsh Ayachit Tag Attached: PythonTrace
2014-07-09 21:18 Utkarsh Ayachit Note Added: 0032997
2014-07-09 21:20 Utkarsh Ayachit Note Edited: 0032997
2014-07-09 21:20 Utkarsh Ayachit Note Edited: 0032997
2014-07-09 21:27 Utkarsh Ayachit Note Edited: 0032997
2014-07-18 21:01 Utkarsh Ayachit Topic Name => refactor_python_tracing_2
2014-07-18 21:01 Utkarsh Ayachit Status backlog => gatekeeper review
2014-07-18 21:01 Utkarsh Ayachit Fixed in Version => git-next
2014-07-18 21:01 Utkarsh Ayachit Resolution open => fixed
2014-07-18 21:01 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2014-07-22 08:32 Utkarsh Ayachit Fixed in Version git-next => git-master
2014-07-22 08:32 Utkarsh Ayachit Status gatekeeper review => customer review
2014-07-22 08:32 Utkarsh Ayachit Note Added: 0033058
2014-07-28 19:56 Alan Scott Note Added: 0033116
2014-07-28 19:56 Alan Scott Status customer review => closed
2014-08-29 10:59 Utkarsh Ayachit Fixed in Version git-master => 4.2


Copyright © 2000 - 2018 MantisBT Team