Re: [Emc-developers] Update_ini and world-mode jogging.

2016-05-15 Thread andy pugh
On 15 May 2016 at 11:49, John Thornton wrote: > assuming your speaking in Python... No, I am speaking in regex. Which is fun in a different way. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics.

Re: [Emc-developers] Update_ini and world-mode jogging.

2016-05-15 Thread John Thornton
I would use a dictionary to store the axis names and have the lookup match the axis numbers assuming your speaking in Python... axis_name = {0:'X', 1:'Y', 2:'Z', etc.} The using eval() to pull out the axis names like this in a for loop. for i in axes: print eval('axis.' + axis_name[i] + '.j

[Emc-developers] Update_ini and world-mode jogging.

2016-05-15 Thread andy pugh
Currently the update_ini script does the following substitutions: 'axis.(.).jog-enable':'joint.\\1.jog-enable', and so on for other jog pins. When the substitution list is created the script does know the axis to joint mapping, so in cases where it makes sense, the above could (almost) b