New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow any symbol to be an animated symbol #48152
Conversation
Users can now indicate that a symbol should be treated as a animated symbol, through the new "Animation Settings" option in the symbol widget's Advanced menu. This settings panel allows users to enable animation for the symbol and set a specific frame rate at which the symbol should be redrawn. When enabled, the @symbol_frame variable can be used in any symbol data defined property in order to animate that property. For instance, setting the symbol's rotation to the data defined expression @symbol_frame % 360 will cause the symbol to rotate over time. (with rotation speed dictated by the symbol's refresh rate)
@nyalldawson A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool stuff. One comment.
Oh man it's like my birthday everyday here! Thanks for this🎂 |
@nyalldawson |
https://giphy.com/gifs/water-summer-a-bug-26gJAvb6CTHxctZNS Thank you, this is awesome! |
Users can now indicate that a symbol should be treated as a animated symbol, through the new "Animation Settings" option in the symbol widget's Advanced menu.
This settings panel allows users to enable animation for the symbol and set a specific frame rate at which the symbol should be redrawn. When enabled, the @symbol_frame variable can be used in any symbol data defined property in order to animate that property.
For instance, setting the symbol's rotation to the data defined expression
will cause the symbol to rotate over time. (with rotation speed dictated by the symbol's refresh rate)