Modify Preview Default

More
24 Aug 2024 21:34 #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.
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
24 Aug 2024 22:25 #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. :)

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

  • phillc54
  • phillc54's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
25 Aug 2024 00:28 #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:
# set view to Z (top)
commands.set_view_z()

# set window maximised
root_window.attributes('-fullscreen', False, '-zoomed', True)
The following user(s) said Thank You: tommylight, Aciera

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

More
26 Aug 2024 23:03 #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 or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
26 Aug 2024 23:30 #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.
 
The following user(s) said Thank You: MomoFab

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

More
27 Aug 2024 06:52 - 27 Aug 2024 06:52 #308771 by Aciera
Replied by Aciera on topic Modify Preview Default
To see hidden files in linux you usually have to type <ctrl>+h in the file manager
Last edit: 27 Aug 2024 06:52 by Aciera.

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

Time to create page: 0.099 seconds
Powered by Kunena Forum