[Paraview] create python state file with python macro

Fabian Braennstroem f.braennstroem at gmx.de
Wed Apr 20 09:36:34 EDT 2011


Hello to both,

thanks for the quick help! The psvm-way I saw already...
And with
var = raw_input("Enter something: ")
print "you entered ", var
datei = open(var, "w")
datei.write(state_string)
datei.close()

it is quite easy to write to some file based the input...

Thanks!
Fabian


On 04/20/2011 03:21 PM, Utkarsh Ayachit wrote:
> What Dave suggested will save the XML state, not the Python state.
>
> Utkarsh
>
> On Wed, Apr 20, 2011 at 9:16 AM, David E DeMarle
> <dave.demarle at kitware.com>  wrote:
>> servermanager.SaveState(filename) and
>> servermanager.LoadState(filename) from python are equivalent to
>> File->SaveState and LoadState respectively.
>>
>> David E DeMarle
>> Kitware, Inc.
>> R&D Engineer
>> 28 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-371-3971 x109
>>
>>
>>
>> On Wed, Apr 20, 2011 at 5:50 AM, Fabian Braennstroem
>> <f.braennstroem at gmx.de>  wrote:
>>> Hello,
>>>
>>> does anyone know, if it is possible to save the current state as a python
>>> state-file using a python-macro?
>>>
>>> Thanks for the help!
>>> Fabian
>>> _______________________________________________
>>> 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
>>>
>> _______________________________________________
>> 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