I would like to have a PNG animation sequence - that reveal the picture and the picture don’t disappear at the end.
I was trying to make an action - but without any luck.
I would like to stop animation at the last frame
By default, the finished animation shows the first frame.
See the animation.pma example.
You need to add the following script:
import QtQuick 2.0
Item {
Connections {
target: subItem
onCurrentFrameChanged: if (subItem.currentFrame == 0) subItem.currentFrame = subItem.imagesCount - 1
}
}
- Select the animation widget
- Open the Interaction tab on the Inspector
- Click add User code
- Paste the script