Skip to content

Navigation Menu

Sign in
Sign up

Rotation around a fixed point #620

Unanswered
amelillo asked this question in Q&A
Apr 2, 2022 · 1 comments · 4 replies
Discussion options

Hi!
I was wondering about the way Sozi manages rotations.
Example:
I usually animate geometrical constructions, which often make use of a compass.
When I let Sozi manage the rotation of a svg compass to trace a small arc it behaves like a regular compass.
But if I have to show the compass drawing a whole circle or a big arc, the arc is shown but the compass doesn't rotate around its needle point; instead, it tumbles across the sheet to the final position as if the arc was drawn magically and the compass was just removed and put again in place.
I tried editing the compass in Inkscape and set the center of rotation onto the needle but it doesn't solve the problem.
By now, I'm just removing the compass from the presentation, letting the arcs appear by themselves, but it would be cool to show the compass.

Any hint?

costruzioni02

costruzioni02.sozi.zip

You must be logged in to vote

Replies: 1 comment 4 replies

Comment options

I was wondering about the way Sozi manages rotations.

During a typical transition, the camera follows a straight line from the center of the start frame to the center of the destination frame.
While moving, it rotates around the current point on this line.
I remember that I tried other strategies before settling on this one: I think that it felt more relevant for a presentation tool to prioritize the translation.

Maybe your use case could benefit from the "transition path" feature, where the camera is constrained to follow a given path during a transition. There is a demo where this feature is used as a workaround to rotate around a fixed point. Follow these links to see the presentation, and to browse the source files.

You must be logged in to vote
4 replies
Comment options

Bonjour,
Je suis très intéressé par la possibilité de faire une rotation autour d’un point fixe. J’ai examiné la présentation et les fichiers source, mais je n’ai pas compris sur quel chemin vous vous appuyez pour faire la rotation ni les paramétrages à effectuer. Pourriez-vous les expliquer ?

Comment options

Le chemin est celui en bleu clair dans le document SVG. Il a la forme d'un arc de cercle avec des flèches aux extrémités.
Les paramétrages à effectuer sont :

  • Dans la section "Calque", champ "ID de l'élément à utiliser comme contour", indiquer l'identifiant de chaque rectangle rouge : "rect-day" pour la vue 1, "rect-night" pour la vue 2.
  • Dans section "Transition", champ "ID du chemin", indiquer l'identifiant : "path-day-to-night".
Comment options

Bonjour,

Merci pour ces explications. Je vais adapter cette méthode à mon document : je souhaite faire « tourner » une roue à 360° sur son centre, en 4 étapes.
Je vous donnerai des nouvelles bientôt 😃.

Comment options

Cool, I hadn't known about the transition path option! (and it already exists for so long...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /