Skip to content
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

Merged
merged 3 commits into from Apr 9, 2022

Conversation

nyalldawson
Copy link
Collaborator

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)

Peek 2022-04-09 14-35

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 nyalldawson added Feature Symbology Related to vector layer symbology or renderers Needs Documentation When merging a labeled PR, an issue will be created in the Doc repo. Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels Apr 9, 2022
@github-actions
Copy link

github-actions bot commented Apr 9, 2022

@nyalldawson
This pull request has been tagged as requiring documentation.

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.
Also, any commit having [needs-doc] or [Needs Documentation] in will see its message pushed to the issue, so please be as verbose as you can.

Thank you!

@github-actions github-actions bot added this to the 3.26.0 milestone Apr 9, 2022
@github-actions github-actions bot added Expressions Related to the QGIS expression engine or specific expression functions GUI/UX Related to QGIS application GUI or User Experience labels Apr 9, 2022
@nyalldawson
Copy link
Collaborator Author

@kannes @klakar this is likely of interest to you!

Copy link
Contributor

@nirvn nirvn left a 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.

src/ui/symbollayer/qgssymbolanimationsettingswidgetbase.ui Outdated Show resolved Hide resolved
@timlinux
Copy link
Member

timlinux commented Apr 9, 2022

Oh man it's like my birthday everyday here! Thanks for this🎂

@github-actions
Copy link

github-actions bot commented Apr 9, 2022

@nyalldawson
A documentation ticket has been opened at qgis/QGIS-Documentation#7491
It is your responsibility to visit this ticket and add as much detail as possible for the documentation team to correctly document this change.
Thank you!

@kannes
Copy link
Contributor

kannes commented Apr 9, 2022

@kannes @klakar this is likely of interest to you!

https://giphy.com/gifs/water-summer-a-bug-26gJAvb6CTHxctZNS

Thank you, this is awesome!

@zacharlie zacharlie added ChangelogHarvested This PR description has been harvested in the Changelog already. and removed Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels May 28, 2022
@nyalldawson nyalldawson deleted the animate_anything branch May 28, 2022 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ChangelogHarvested This PR description has been harvested in the Changelog already. Expressions Related to the QGIS expression engine or specific expression functions Feature GUI/UX Related to QGIS application GUI or User Experience Needs Documentation When merging a labeled PR, an issue will be created in the Doc repo. Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants