Discussion:
[deprecated list] Background color
Anton Gladky
2009-08-20 08:36:18 UTC
Permalink
Hi, all!

Is it possible to make another color of the background from python script?

Thank you
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Václav Šmilauer
2009-08-20 09:57:39 UTC
Permalink
Post by Anton Gladky
Is it possible to make another color of the background from python script?
from yade import qt
r=qt.Renderer()
r['Background_color']=0,0,0



_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-08-20 11:14:35 UTC
Permalink
Thank you!

http://yade.wikia.com/wiki/FAQ#Is_it_possible_to_make_another_color_of_the_background_from_python_script.3F


______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Václav Šmilauer
Post by Anton Gladky
Is it possible to make another color of the background from python script?
from yade import qt
r=qt.Renderer()
r['Background_color']=0,0,0
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-08-20 11:15:15 UTC
Permalink
Where is it possible to get all of possible parameters to change?

______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Anton Gladky
Thank you!
http://yade.wikia.com/wiki/FAQ#Is_it_possible_to_make_another_color_of_the_background_from_python_script.3F
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО
Anton Gladkyy
Post by Václav Šmilauer
Post by Anton Gladky
Is it possible to make another color of the background from python script?
from yade import qt
r=qt.Renderer()
r['Background_color']=0,0,0
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Václav Šmilauer
2009-08-20 12:00:40 UTC
Permalink
Post by Anton Gladky
Where is it possible to get all of possible parameters to change?
r=qt.Renderer()
r.keys() # get just the keys
r.dict() # get both keys and values; you need r1709 for that

just like with any other yade object in python.

For Renderer, the same params can be set from tu GUI (the Display tab);
and you can also have a look at OpenGLRenderingEngine code.

For the view (per-view params), which is not yade object, you can do:

v=qt.View()
v.<tab> # will show completions
dir(v)

and also see scripts/gl-test.py

Vaclav




_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-08-20 12:52:55 UTC
Permalink
Thank you!

______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Václav Šmilauer
Post by Anton Gladky
Where is it possible to get all of possible parameters to change?
r=qt.Renderer()
r.keys() # get just the keys
r.dict() # get both keys and values; you need r1709 for that
just like with any other yade object in python.
For Renderer, the same params can be set from tu GUI (the Display tab);
and you can also have a look at OpenGLRenderingEngine code.
v=qt.View()
v.<tab> # will show completions
dir(v)
and also see scripts/gl-test.py
Vaclav
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Loading...