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

Animation settings added #8569

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Animation settings added #8569

merged 2 commits into from
Oct 27, 2023

Conversation

selmaVH1
Copy link
Collaborator

fixes #7491
Animation settings added to symbol_selector and vector_properties.

Animation settings
..................

To allow any symbol to become an animated symbol, you can utilize
Copy link
Collaborator

@DelazJ DelazJ Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To allow any symbol to become an animated symbol, you can utilize
To allow any symbol to become an :ref:`animated symbol <animated_marker>`, you can utilize

Let's connect sections; the pr build will fail but just a temporary issue

@@ -1093,6 +1093,26 @@ updated as you set the parameters.
applied to point layer using single, categorized or graduated symbology.


.. index:: Animation Settings
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be more generic in the index

Suggested change
.. index:: Animation Settings
.. index:: Animation

Comment on lines 1105 to 1113
Start by going to the :guilabel:`Advanced` menu, within this menu you will
find the :guilabel:`Animation settings` option. Select
|checkbox| :guilabel:`Is Animated` and you will activate animation for
the symbol. Once animation is activated you can use expressions to control
symbol properties. For example, setting the symbol's rotation to the data
defined expression ``@symbol_frame % 369`` will cause the symbol to rotate
over time, with rotation speed dictated by the symbol's frame rate.


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's clearly show the steps people should follow

Suggested change
Start by going to the :guilabel:`Advanced` menu, within this menu you will
find the :guilabel:`Animation settings` option. Select
|checkbox| :guilabel:`Is Animated` and you will activate animation for
the symbol. Once animation is activated you can use expressions to control
symbol properties. For example, setting the symbol's rotation to the data
defined expression ``@symbol_frame % 369`` will cause the symbol to rotate
over time, with rotation speed dictated by the symbol's frame rate.
#. Start by going to the top symbol level and select :guilabel:`Advanced` menu in the bottom right of the dialog
#. Find the :guilabel:`Animation settings` option
#. Check |checkbox| :guilabel:`Is Animated` to enable animation for the symbol
#. Configure the :guilabel:`Frame rate`, i.e. how fast the animation would be played
#. You can now use the ``@symbol_frame`` variable in any sub-symbol data defined property
in order to animate that property.
For example, 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 frame rate.

I wonder if the last paragraph should instead be used as caption for a (welcomed) animation showing how to use that feature.

@DelazJ DelazJ mentioned this pull request Oct 23, 2023
1 task
@DelazJ DelazJ merged commit b3e8aaf into qgis:master Oct 27, 2023
2 of 3 checks passed
@selmaVH1 selmaVH1 added this to Reviewer approved in Selma Work Planning Nov 28, 2023
@selmaVH1 selmaVH1 moved this from Reviewer approved to Done in Selma Work Planning Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Allow any symbol to be an animated symbol (Request in QGIS)
2 participants