system.gui.animateWithDuration
complete
Z
Zack Scriven
This would make animating very easy. The current method using a timer script and moveComponent is very clunky.
component, newX, newY, newWidth, newHeight, duration
Log In
awalker
complete
awalker
open
Kathy A.
complete
Kathy A.
This is now implemented as system.gui.transform() http://docs.inductiveautomation.com/display/DOC79/system.gui.transform
Z
Zack Scriven
Thank you Phil! I'll check it out.
P
Phil Turmel
An alternate solution for animation is shown in the Simulation Aids demonstration project from October 13. Requires a not-so-simple shared or project script, but the use on each component is very simple.
Z
Zack Scriven
Nice Kevin!
k
kmcclusky
One nice feature here would be an argument for animationType, so the type of transform could be specified by the user. In addition to the intuitive "Linear" (transform / move at an even speed), "Sine" could accelerate the move at the beginning then decelerate the move at the end, etc.
system.gui.transform(component, newX, newY, newWidth, newHeight, duration=0, transformType="Linear")