- Posts: 2
- Thank you received: 0
Modify Preview Default
2 years 2 months ago #308560
by tbitello
Modify Preview Default was created by tbitello
I want to change the default preview view to A (top view) when opening linuxcnc and also, if possible, maximize the screen by default, I use the axis 2.9.2 version on a router.
Please Log in to join the conversation.
- tommylight
-
- Online
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
2 years 2 months ago #308562
by tommylight
Replied by tommylight on topic Modify Preview Default
Probably by using the .axisrc file, but i have no idea exactly how.
I am sure there are others that know exactly how, so wait a bit more, we live in all parts of the world so day is not a day at the same time.
I am sure there are others that know exactly how, so wait a bit more, we live in all parts of the world so day is not a day at the same time.
Please Log in to join the conversation.
2 years 2 months ago #308565
by phillc54
Replied by phillc54 on topic Modify Preview Default
You could use either the
axisrc
file or a
USER_COMMAND_FILE
with the following code:
Code:
# set view to Z (top)
commands.set_view_z()
# set window maximised
root_window.attributes('-fullscreen', False, '-zoomed', True)
Please Log in to join the conversation.
2 years 2 months ago #308746
by tbitello
Replied by tbitello on topic Modify Preview Default
I understand, but I didn't identify any file called axisrc, just create it? Does it need to be in a specific folder? Will the root_windows command you mentioned be inside this file too?
Please Log in to join the conversation.
2 years 2 months ago #308747
by phillc54
Replied by phillc54 on topic Modify Preview Default
The files real name is .axisrc (note the leading dot which makes it a hidden file) and it goes in the users home directory. If it does not exist then create it.
Both commands will work from ~/.axisrc and will be applied to every LinuxCNC config.
Both commands will work from ~/.axisrc and will be applied to every LinuxCNC config.
Please Log in to join the conversation.
Time to create page: 0.172 seconds
