Tool Cone Color
- Vmax549
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 336
- Thank you received: 28
			
	
						05 Sep 2019 19:45				#144267
		by Vmax549
	
	
		
			
	
			
			 		
													
	
				Tool Cone Color was created by Vmax549			
			
				Does anyone know how to change the color of the Tool Cone in the toolpath display. I have looked but cannot find anything that relates to it.
Thanks ( TP
 TP			
					Thanks (
 TP
 TP			Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						05 Sep 2019 23:34				#144290
		by andypugh
	
	
		
			
	
	
			 		
													
	
				Replied by andypugh on topic Tool Cone Color			
			
				I think these are RGB values:
github.com/LinuxCNC/linuxcnc/blob/master...s274/glcanon.py#L359
Though I am not 100% sure which is the tool cone.
					github.com/LinuxCNC/linuxcnc/blob/master...s274/glcanon.py#L359
Though I am not 100% sure which is the tool cone.
		The following user(s) said Thank You: Todd Zuercher 	
			Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						05 Sep 2019 23:35				#144291
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic Tool Cone Color			
			
				Oh. PathPilot. That may well not use glcanon at all.			
					Please Log in or Create an account to join the conversation.
- smgvbest
- 
				  
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 311
- Thank you received: 51
			
	
						05 Sep 2019 23:38				#144294
		by smgvbest
	
	
		
			
	
			
			 		
													
	
				Replied by smgvbest on topic Tool Cone Color			
			
				I didn’t check enough to know where they are set but the object is available in ui_common.py
Found it looking at debug info so it’s there but you may have to code it yourself
					Found it looking at debug info so it’s there but you may have to code it yourself
Please Log in or Create an account to join the conversation.
- Vmax549
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 336
- Thank you received: 28
			
	
						06 Sep 2019 00:14				#144299
		by Vmax549
	
	
		
			
	
			
			 		
													
	
				Replied by Vmax549 on topic Tool Cone Color			
			
				I looked throught teh PYs and did not see anything I thought was it . I did a search on Color in all teh files . Trouble is I do not know what the tool conne is actually called in teh scripts so it is hard to search for.			
					Please Log in or Create an account to join the conversation.
- smgvbest
- 
				  
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 311
- Thank you received: 51
			
	
						06 Sep 2019 00:58				#144302
		by smgvbest
	
	
		
			
	
			
			 		
													
	
				Replied by smgvbest on topic Tool Cone Color			
			
				Its not in-use in PP,  that's what I mean by you'll have to code it yourself
the color setting is available thru the self.xx.xx class in the ui_common.py.
something like this
self.gremlin.colors.cone(1.0,1.0.1.0) // RGB from 0-1 for each value
this is a guess looking at the self object.
I don't know if it will actually work
					the color setting is available thru the self.xx.xx class in the ui_common.py.
something like this
self.gremlin.colors.cone(1.0,1.0.1.0) // RGB from 0-1 for each value
this is a guess looking at the self object.
I don't know if it will actually work
Please Log in or Create an account to join the conversation.
- Vmax549
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 336
- Thank you received: 28
			
	
						09 Sep 2019 13:29				#144606
		by Vmax549
	
	
		
			
	
			
			 		
													
	
				Replied by Vmax549 on topic Tool Cone Color			
			
				Hi all , I finally found the GLcannon.py. There are 3 copies in pathpilot. So which to use ??. I did find a copy that allowed me to change the color of an element on teh screen BUT when I changed the CONE color it made no difference so I am now assuming that the Cone color is being overrode somewhere else.
ALSO I have no idea what color system PathPilot uses. It is not CMY and it is not RGB in teh normal sense of 255,255,0.
Just a thought, ( TP
 TP			
					ALSO I have no idea what color system PathPilot uses. It is not CMY and it is not RGB in teh normal sense of 255,255,0.
Just a thought, (
 TP
 TP			Please Log in or Create an account to join the conversation.
- Vmax549
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 336
- Thank you received: 28
			
	
						11 Sep 2019 15:02				#144827
		by Vmax549
	
	
		
			
	
			
			 		
													
	
				Replied by Vmax549 on topic Tool Cone Color			
			
				Interesting that there are 4 copies of PP stored on teh machine andin each copy there are 2 sections that teh Cone color could be set. BUT none of them actuall change teh color. So it must be overridden somewhere else in PP.
( TP
 TP			
					(
 TP
 TP			Please Log in or Create an account to join the conversation.
- smgvbest
- 
				  
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 311
- Thank you received: 51
			
	
						11 Sep 2019 15:08				#144829
		by smgvbest
	
	
		
			
	
			
			 		
													
	
				Replied by smgvbest on topic Tool Cone Color			
			
				Do you have a python debugger?
If so set watch on the actual point that controls the color or if possible set a conditional break point on it. Tgat way when it changes your code will stop where it’s running
Pycharm and Wing are already setup in pp. just need to enable whichever you use
					If so set watch on the actual point that controls the color or if possible set a conditional break point on it. Tgat way when it changes your code will stop where it’s running
Pycharm and Wing are already setup in pp. just need to enable whichever you use
Please Log in or Create an account to join the conversation.
- Vmax549
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 336
- Thank you received: 28
			
	
						11 Sep 2019 18:31				#144833
		by Vmax549
	
	
		
			
	
			
			 		
													
	
				Replied by Vmax549 on topic Tool Cone Color			
			
				Sorry but I do not have a clue as to what you are suggesting.  (
( TP
 TP			
					
(
 TP
 TP			Please Log in or Create an account to join the conversation.
		Time to create page: 0.077 seconds	
