[Paraview] Generate Programmable Sources with Timesteps

Magician f_magician at mac.com
Thu Feb 6 11:10:12 EST 2014


Hi Utkarsh,


Great! Almost the code works.

Maybe the last variable 'req_timesteps[0]' is wrong, isn't it?
My code is working with 'req_time'.


Then I have one question.
What does the function SetOutputTimesteps() of RequestInformation means?
I tested to remove the block, but the source still works as before.


Magician


On Feb 5, 2014, at 5:19, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:

> Magician,
> 
> I've updated the Wiki. The API has changed since ParaView 4.0. It's no
> longer DATA_TIME_STEPS/UPDATE_TIME_STEPS, it has been replaced by
> DATA_TIME_STEP/UPDATE_TIME_STEP.
> 
> Utkarsh
> 
> On Thu, Nov 28, 2013 at 4:59 PM, Magician <f_magician at mac.com> wrote:
>> Any ideas?
>> 
>> I'd like to generate moving object with the Programmable Source,
>> but there are not enough informations on the Web to do it.
>> 
>> 
>> Magician
>> 
>> 
>> Begin forwarded message:
>> 
>>> From: Magician <f_magician at mac.com>
>>> Subject: Generate Programmable Sources with Timesteps
>>> Date: November 27, 2013 at 6:50:54 GMT+9
>>> To: ParaView <paraview at paraview.org>
>>> 
>>> Hi all,
>>> 
>>> 
>>> I'm trying to generate programmable sources with timesteps.
>>> The URL may describe how to do them:
>>> <http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#Producing_Data_with_Timesteps_.28Source.29>
>>> 
>>> But when I try the code, I got an error as below:
>>>> Traceback (most recent call last):
>>>> File "<string>", line 19, in <module>
>>>> File "<string>", line 14, in RequestData
>>>> File "<string>", line 5, in GetUpdateTimesteps
>>>> AttributeError: UPDATE_TIME_STEPS
>>> 
>>> I have Mac OS 10.9 and ParaView 4.0.1.
>>> The attached pvsm file is what I coded. # just copied the sample code
>>> 
>>> How can I run it exactly?
>>> 
>>> 
>>> Magician
>> 
>> _______________________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>> 
>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview



More information about the ParaView mailing list