[Paraview] Text source font coloring in interpreter

M. Nawijn nawijn at gmail.com
Fri Jul 17 15:42:43 EDT 2009


Hello Pat,

Thanks for the tip, I will give it a try. I actually tried it before,
but what I got
was not what I expected. Anyway, I might have used it the wrong way. I will
try again and let you know.

Regards,

Marco


On Fri, Jul 17, 2009 at 9:19 PM, pat marion<pat.marion at kitware.com> wrote:
> Hi Marco,
>
> May I also recommend you try out the new trace feature in paraview?
> If you open the python shell, go to the "Trace" tab, and click "Start
> Trace", then create a text source and change its color, then click the
> "Show Trace" button, you'll get the python code you are looking for.
> The trace output can be a little verbose sometimes, but it can give
> you something to start from.
>
> Pat
>
> On Fri, Jul 17, 2009 at 3:09 PM, M. Nawijn<nawijn at gmail.com> wrote:
>> Thanks! It works. I start getting the idea...
>>
>> Marco
>>
>> On Fri, Jul 17, 2009 at 8:59 PM, Utkarsh
>> Ayachit<utkarsh.ayachit at kitware.com> wrote:
>>> Try this:
>>>
>>> from paraview.simple import *
>>> Text(Text="Hello")
>>> repr = Show()
>>> help(repr)
>>>
>>> That will show the list of available representation properties which
>>> includes "Color", "FontFamily" etc
>>>
>>> Utkarsh
>>>
>>>
>>>
>>> On Fri, Jul 17, 2009 at 2:54 PM, M. Nawijn<nawijn at gmail.com> wrote:
>>>> Hello,
>>>>
>>>> In the standalone Python interpreter I created a text source like this:
>>>>
>>>>>> from paraview.simple import Text
>>>>>> text = Text()
>>>>>> text.Text = "Hello"
>>>>
>>>> Next I would like to change the font/text color, since by default the
>>>> text is in white as is the background of my
>>>> visualization. However, I cannot find away to do it. I tried setting
>>>> "Color", "TextColor" etc. properties,
>>>> but these are not recognised.
>>>>
>>>> Does anybody know how to do this?
>>>>
>>>> Kind regards,
>>>>
>>>> Marco
>>>> _______________________________________________
>>>> 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