Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-25 Thread Utkarsh Ayachit
The stub of code you had posted earlier should still work. On Thu, Apr 25, 2013 at 11:16 AM, Bill Sherman wrote: > On 04/25/2013 10:57 AM, Utkarsh Ayachit wrote: >> >> Don't do this in ProgrammableFIlter, do it in the "Python" animation >> script. > > > Okay, but I don't know how to get geometry

Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-25 Thread Bill Sherman
On 04/25/2013 10:57 AM, Utkarsh Ayachit wrote: Don't do this in ProgrammableFIlter, do it in the "Python" animation script. Okay, but I don't know how to get geometry generated in a Python animation script to be placed into the pipeline. I've only figured out how to do that in the Programmable

Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-25 Thread Utkarsh Ayachit
Don't do this in ProgrammableFIlter, do it in the "Python" animation script. On Thu, Apr 25, 2013 at 10:55 AM, Bill Sherman wrote: > Hey Utkarsh, > > >> Following may help: >> >> - Create a mapper for your polydata. >> - Set that mapper to a vtkFollower. >> - Pass camera to vtkFollower (view.GetA

Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-25 Thread Bill Sherman
Hey Utkarsh, Following may help: - Create a mapper for your polydata. - Set that mapper to a vtkFollower. - Pass camera to vtkFollower (view.GetActiveCamera()) - Add vtkFolllower to view (view.GetRenderer2D().AddActor(follower) You'll have to figure out what Python modules to import to get the

Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-25 Thread Utkarsh Ayachit
Following may help: - Create a mapper for your polydata. - Set that mapper to a vtkFollower. - Pass camera to vtkFollower (view.GetActiveCamera()) - Add vtkFolllower to view (view.GetRenderer2D().AddActor(follower) You'll have to figure out what Python modules to import to get the vtkFollower/vtk

Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-24 Thread William Sherman
On 4/24/13 11:09 PM, Utkarsh Ayachit wrote: I'm am little confused, what is that you exactly want to see? I can figure out how to show that. Nothing visually complicated. In my animation sequence I have data time repeat over and over again as I represent it using different methods. I currentl

Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-24 Thread Utkarsh Ayachit
I'm am little confused, what is that you exactly want to see? I can figure out how to show that. Utkarsh On Wed, Apr 24, 2013 at 5:54 PM, Bill Sherman wrote: > Hello again Utkarsh, ParaView list people, > > >> You cannot access animation scene from ProgrammableSource. Anything >> from simple.py/

Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-24 Thread Bill Sherman
Hello again Utkarsh, ParaView list people, You cannot access animation scene from ProgrammableSource. Anything from simple.py/servermanager.py cannot be accessed in ProgrammableSource/Filter. You can add Python scripts as an animation track, however. In the animation view, choose "Python" in the

Re: [Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-24 Thread Utkarsh Ayachit
Bill, You cannot access animation scene from ProgrammableSource. Anything from simple.py/servermanager.py cannot be accessed in ProgrammableSource/Filter. You can add Python scripts as an animation track, however. In the animation view, choose "Python" in the first combo-box next to the "+" button

[Paraview] Accessing GetAnimationScene() from the ProgrammableSource

2013-04-24 Thread Bill Sherman
Hello, I have a question about how to access internal ParaView data from the Programmable Source source. Specifically, I want to have a source that changes based on the animation time, and so I would like to know how to get the current data-time from within the python code of a Programmable Sour