MantisBT - ParaView
View Issue Details
0015331ParaView(No Category)public2015-02-19 07:032015-09-06 12:17
Vadim SANDLER 
Tristan Coulange 
normalminoralways
closedfixed 
4.3 
4.4 
ParaViS
0015331_fix_animation_track_python
incorrect functionality
0015331: Regression of the animation from python
Script demo.py works well in the ParaView-4.1 but doesn't work as expected in the ParaView-4.2 and ParaView-4.3.1

1) Modify the script demo.py from the archive demo.tag.gz (https://drive.google.com/file/d/0B_XAVXb9X2V8MXRmbEJHSldwbGc/view?usp=sharing [^]) in order to set correct path to the demo_*.vtm files.
2) Execute script in the ParaView python shell

In the the result the following errors are detected:

1) Presentation is not coloured by 'RESULT__DEPL____________________', 'Magnitude' array. It is coloured by this array after change component to 'DX' and to 'Magnitude' again on the 'Active Variable Controls' tool-bar.
2) Show animation view. The line for animation by WarpByVector1 'ScaleFactor' property with the Key Frames specified in the python script is not added to the animation view table.
   
It works well in the ParaView-4.1.
No tags attached.
Issue History
2015-02-19 07:03Vadim SANDLERNew Issue
2015-02-19 07:03Vadim SANDLERAssigned To => Tristan Coulange
2015-03-26 02:47Tristan CoulangeTopic Name => 0015331_fix_animation_track_python
2015-03-26 02:47Tristan CoulangeReproducibilityhave not tried => always
2015-03-26 02:47Tristan CoulangeStatusbacklog => active development
2015-03-27 04:13Tristan CoulangeNote Added: 0034329
2015-03-27 04:44Tristan CoulangeStatusactive development => gatekeeper review
2015-06-02 08:46Utkarsh AyachitStatusgatekeeper review => customer review
2015-06-02 08:46Utkarsh AyachitResolutionopen => fixed
2015-06-02 08:46Utkarsh AyachitFixed in Version => git-master
2015-07-09 21:29Alan ScottNote Added: 0034732
2015-07-09 21:29Alan ScottStatuscustomer review => closed
2015-09-06 12:17Utkarsh AyachitFixed in Versiongit-master => 4.4

Notes
(0034329)
Tristan Coulange   
2015-03-27 04:13   
Hello,

Regarding the first error, you have to add the following command at line 65:
  WarpByVectorDataRepresentation.RescaleTransferFunctionToDataRange(True)
It corresponds to the button "Rescale To Data Range" in the GUI. In the previous versions of ParaView it was done automatically, but now you will have to do it explicitly.
You can see it in the documentation "TheParaViewGuide-v4.3-CC-Edition.pdf", or by doing the same steps in the GUI with Python trace enabled: the generated trace has the command too.

Regarding the second error, it was fixed and merged into master:
https://gitlab.kitware.com/paraview/paraview/merge_requests/19#note_8369 [^]

Tristan
(0034732)
Alan Scott   
2015-07-09 21:29   
Closing bug report.