Operator enters a length and bend angle into a table. This data modifies the dimensions of a line in the paintable canvas. I’ve got the paintable canvas working using cartesian corordinates, but I can’t find an easy way to convert the polar co-ordinates to cartesian.
I’ve only been using Ignition a few days, and I’ve got no scritping experience so I’m probably writing some quite inefficient code and making newbie mistakes, but is there a tidy way to achieve this?
Current plan is to convert the angle to radians, then use trig functions to get X & Y distances, but I can’t seem to get the syntax right and keep getting errors. I noticed that these functions are listed as Expression fucntions in them manual, does this mean they can’t be used in the Script Editor of the Event Handler?
Alternatively, I notice that the Python cMath module has some polar conversion functions, are these an option?
Also, how do I set an editable cell in a table to overwrite?