How to change perspective preview?

More
5 years 6 months ago #205567 by newbynobi
Replied by newbynobi on topic How to change perspective preview?
The reset of the view is done because a reload is done changing the mode. It is caused by gremlin widget.

You can change the behavior of the mouse buttons on the setting page, this might be also useful for touch screen usage.

Norbert

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #205570 by tuxcnc
Replied by tuxcnc on topic How to change perspective preview?

newbynobi wrote: The reset of the view is done because a reload is done changing the mode.Norbert

I understand, but is it possible to set other default values of zoom and view angle ?
This computer is intended only for one machine, change of source code is acceptable.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #205575 by cmorley
Replied by cmorley on topic How to change perspective preview?
try lib/python/glnav.py

modify function:
set_view_p()
The following user(s) said Thank You: tuxcnc

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #205582 by tuxcnc
Replied by tuxcnc on topic How to change perspective preview?

cmorley wrote: try lib/python/glnav.py

modify function:
set_view_p()

It works.
There are three values to change, I bold it :

size = (size[0] ** 2 + size[1] ** 2 + size[2] ** 2) ** .5

self.lat = -60
self.lon = 335

There is no hard work to add default size and angle of preview in gmoccapy preferences, I think it may be usefull.

Please Log in or Create an account to join the conversation.

Moderators: newbynobi, HansU
Time to create page: 0.204 seconds
Powered by Kunena Forum