Gremlin screen add right mouse click to add g-code options
- Grotius
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 2259
- Thank you received: 2007
27 Jul 2018 19:56 #114984
by Grotius
Gremlin screen add right mouse click to add g-code options was created by Grotius
Hi i would like to add some functions to the gremlin screen.
Does someone know about previous try out's or developments?
I would like to increase the tool contrast to light and darker mode.
I would like to select a g-code line at the gremlin screen that then can be edited in the loaded gcode for adding plasma bevel lines.
Does someone know about previous try out's or developments?
I would like to increase the tool contrast to light and darker mode.
I would like to select a g-code line at the gremlin screen that then can be edited in the loaded gcode for adding plasma bevel lines.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
28 Jul 2018 23:03 #115035
by cmorley
Replied by cmorley on topic Gremlin screen add right mouse click to add g-code options
hal_gremlin emits a GStat message when a line is clicked. It returns the line number.
If you connected to this message then you could possibly do what you wish.
hal_sourceview uses it to highlight a clicked line.
colors can be changed by using the signature (in hal_gremlin.py):
self.colors = (0.0, 0.0, 0.75) # blue
the color variables are set in glcanon.py:
If you connected to this message then you could possibly do what you wish.
hal_sourceview uses it to highlight a clicked line.
colors can be changed by using the signature (in hal_gremlin.py):
self.colors = (0.0, 0.0, 0.75) # blue
the color variables are set in glcanon.py:
colors = {
'traverse': (0.30, 0.50, 0.50),
'traverse_alpha': 1/3.,
'traverse_xy': (0.30, 0.50, 0.50),
'traverse_alpha_xy': 1/3.,
'traverse_uv': (0.30, 0.50, 0.50),
'traverse_alpha_uv': 1/3.,
'backplotprobing_alpha': 0.75,
'backplotprobing': (0.63, 0.13, 0.94),
'backplottraverse': (0.30, 0.50, 0.50),
'label_ok': (1.00, 0.51, 0.53),
'backplotjog_alpha': 0.75,
'tool_diffuse': (0.60, 0.60, 0.60),
'backplotfeed': (0.75, 0.25, 0.25),
'back': (0.00, 0.00, 0.00),
'lathetool_alpha': 0.10,
'axis_x': (0.20, 1.00, 0.20),
'cone': (1.00, 1.00, 1.00),
'cone_xy': (0.00, 1.00, 0.00),
'cone_uv': (0.00, 0.00, 1.00),
'axis_z': (0.20, 0.20, 1.00),
'label_limit': (1.00, 0.21, 0.23),
'backplotjog': (1.00, 1.00, 0.00),
'selected': (0.00, 1.00, 1.00),
'lathetool': (0.80, 0.80, 0.80),
'dwell': (1.00, 0.50, 0.50),
'overlay_foreground': (1.00, 1.00, 1.00),
'overlay_background': (0.00, 0.00, 0.00),
'straight_feed': (1.00, 1.00, 1.00),
'straight_feed_alpha': 1/3.,
'straight_feed_xy': (0.20, 1.00, 0.20),
'straight_feed_alpha_xy': 1/3.,
'straight_feed_uv': (0.20, 0.20, 1.00),
'straight_feed_alpha_uv': 1/3.,
'small_origin': (0.00, 1.00, 1.00),
'backplottoolchange_alpha': 0.25,
'backplottraverse_alpha': 0.25,
'overlay_alpha': 0.75,
'tool_ambient': (0.40, 0.40, 0.40),
'tool_alpha': 0.20,
'backplottoolchange': (1.00, 0.65, 0.00),
'backplotarc': (0.75, 0.25, 0.50),
'm1xx': (0.50, 0.50, 1.00),
'backplotfeed_alpha': 0.75,
'backplotarc_alpha': 0.75,
'arc_feed': (1.00, 1.00, 1.00),
'arc_feed_alpha': .5,
'arc_feed_xy': (0.20, 1.00, 0.20),
'arc_feed_alpha_xy': 1/3.,
'arc_feed_uv': (0.20, 0.20, 1.00),
'arc_feed_alpha_uv': 1/3.,
'axis_y': (1.00, 0.20, 0.20),
'grid': (0.15, 0.15, 0.15),
}
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
Time to create page: 0.048 seconds