[Paraview] [*] Re: Visualizations works converted to python code
Eric E. Monson
emonson at cs.duke.edu
Fri Jul 2 10:00:20 EDT 2010
Hey Rhushabh,
Offhand I don't see a way to load exported color maps (lookup tables) through python, but it's not difficult to just create what you want in the script. Either use the python Trace functionality while you create a new lookup table by hand, and then "Show Trace" to see how they're constructed using GetLookupTableForArray, or use "Trace State" with some elements colored to see all of the options for this method.
I think you won't have any choice but to explicitly adjust your lookup tables to compensate for any shifts in your range of image values. Also, I don't think there is a way to specify lookup tables in ParaView that have opacity less than 1.0. In volume rendering it's possible, and if you texture polygons with images that have transparent regions ParaView will display it properly, but the lookup table creation for non-volume-rendering doesn't allow you to specify opacity values.
-Eric
------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group
On Jul 1, 2010, at 2:37 AM, rhushabh at iitk.ac.in wrote:
> Hi,
> Thanks for the previous help... it has reduced my work to a great extent.
>
> Please could you help me in 2 more situations..
>
> One: I have made some color schemes with fixed colors for different values
> ranges and few with different opacity.
> So how Do i use these user defined color schemes. (By exporting? and
> further steps?)
> Other half is that I want to use them on all my images. But the lower n
> upper limits of pixel values differ and if i rescale the color scheme, the
> ranges will change around center values (say near 0 to 1). Is there a
> better option.
>
>
> Second: Please could you tell me an option for: The user gives me input
> file locations and the output will be the image being opened by paraview
> with different filters and rescaling applied on it.
>
> Thank You in advance.
> Regards
> Rhushabh
>
>
>
>> ParaView supports tracing your actions into Python as your are doing
>> them in the GUI as well as save the current state in a python script.
>> Refer to http://www.paraview.org/Wiki/Python_GUI_Tools for details.
>>
>> Utkarsh
>>
>> On Tue, Jun 29, 2010 at 7:55 AM, <rhushabh at iitk.ac.in> wrote:
>>> Hi,
>>> I am working on a set of images and have to carry out many filters and
>>> changes in the color schemes before taking a snapshot of it.
>>> Can we get our work converted into python code? ...
>>> or is the work stored into some python file when we work already?
>>> so that we can only change the input file name and run the code on the
>>> python shell
>>> As our work has been completed already ,so this would be very helpful to
>>> run it on multiple files.
>>>
>>> One more doubt : how do we use the exported color scheme in paraview
>>> from
>>> python shell ?
>>>
>>> Thank You in advance
>>>
>>> Rhushabh Bhandari
>>> _______________________________________________
>>> 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