Manipulating the renderer from the Python console in the GUI

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
joncrookston
Expert User
Posts: 27
Joined: Wed Apr 11, 2007 4:03 pm
Location: Nottingham, UK

Manipulating the renderer from the Python console in the GUI

Post by joncrookston »

Just a simple question. If I want to set the viewport in the GUI to use parallel projection rather than perspective, I need to use some code along the lines of:

Code: Select all

CTexGenRenderer.SetParallelProjection(1)
or maybe:

Code: Select all

CTexGenRenderer.GetRenderer().SetParallelProjection(1)
but I can't work out exactly what it should be. Any tips?
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

You can type the following in the python console:

Code: Select all

GetRenderWindow().SetParallelProjection(True)
Post Reply