Guys, I'm struggling here. First job with Ignition, potentially more to come, but it just falls flat on it's face with animation which is big in the industry I'm in.
I have a coil (red circle) as it grows, I want the line to follow it.
I've already written my own python routine to normalize data coming in and scaling it to pixels. (Feature request btw, every other HMI lets you set the range on an animation)
I have created custom properties that scale my coil diameter and translate it to the line. It adjusts x, y, height, width, and angle.
Y, actually does not need adjusted. All my math seems to check out. If I enter my max diameter, my red circle grows to it's max, and the line, IF it would stay in the proper position in the Y, would actually work. Instead I get this
Mind you, my Y position, is actually tied to a custom property which is giving me the value the line needs to be at
StripYPos is calculated to be 405, which is what Y SHOULD be displaying. Instead Its at 430
It just gets ignored by Vision.
Any ideas? Customer isn't going to be happy if we can't figure this one out.
Instead of trying to manually align lines (which is only going to end in frustration), considering using a Paintable Canvas component to draw your lines, circles, etc:
This is basically your best bet in terms of animation specifically within Vision.
What is happening to the y position as the diameter approaches max? Does it look ok all the way up until the max is reached, and then suddenly jumps down to the wrong spot?