You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/libf3d/06-MIGRATION.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,3 +27,11 @@ The callback takes an argument of type `f3d::interactor::interactor_state_t` all
27
27
## F3D_PLUGINS_PATH
28
28
29
29
When running F3D, it was possible to specify the path for loading plugins using the environment variable `F3D_PLUGINS_PATH`. This variable has been removed in favor of the CLI option `--plugins-path` which is more secure.
30
+
31
+
## Animation jump commands
32
+
33
+
The `jump_to_frame` and `jump_to_keyframe` commands no longer take a second boolean argument to control whether the jump is relative or absolute. They now always perform an absolute jump and take a single index argument.
34
+
35
+
To perform a relative jump, use the new dedicated `jump_to_frame_relative` and `jump_to_keyframe_relative` commands, which take a single offset argument.
36
+
37
+
So `jump_to_frame 10 false` becomes `jump_to_frame 10`, and `jump_to_frame 1 true` becomes `jump_to_frame_relative 1`. Likewise `jump_to_keyframe 4 false` becomes `jump_to_keyframe 4`, and `jump_to_keyframe 1 true` becomes `jump_to_keyframe_relative 1`.
`toggle_animation_backward`: A specific command to start/stop the animation backward. No argument.
77
77
78
-
`jump_to_frame`: A specific command to load an animation at a specific frame, takes a number and a boolean as arguments.
78
+
`jump_to_frame`: A specific command to load an animation at a specific frame, takes a frame index as argument.
79
79
eg:
80
80
81
-
-`jump_to_frame 1 true` jump to next frame.
82
-
-`jump_to_frame -1 true` jump to previous frame.
83
-
-`jump_to_frame 0 false` jump to frame 0.
84
-
-`jump_to_frame 1 false` jump to frame 1.
85
-
-`jump_to_frame 10 false` jump to frame 10.
86
-
-`jump_to_frame -1 false` jump to last frame.
87
-
-`jump_to_frame -2 false` jump to second last frame.
81
+
-`jump_to_frame 0` jump to frame 0.
82
+
-`jump_to_frame 1` jump to frame 1.
83
+
-`jump_to_frame 10` jump to frame 10.
84
+
-`jump_to_frame -1` jump to last frame.
85
+
-`jump_to_frame -2` jump to second last frame.
88
86
89
-
`jump_to_keyframe`: A specific command to load an animation at a specific keyframe, takes a number and a boolean as arguments.
87
+
`jump_to_frame_relative`: A specific command to move the animation by a number of frames relative to the current frame, takes a frame offset as argument.
88
+
eg:
89
+
90
+
-`jump_to_frame_relative 1` jump to next frame.
91
+
-`jump_to_frame_relative -1` jump to previous frame.
92
+
93
+
`jump_to_keyframe`: A specific command to load an animation at a specific keyframe, takes a keyframe index as argument.
94
+
When jumping to a keyframe, the target keyframe index is adjusted to stay within the total number of available keyframes, avoiding invalid keyframe access.
95
+
eg:
96
+
97
+
-`jump_to_keyframe 0` jump to animation start frame.
98
+
-`jump_to_keyframe 1` jump to keyframe 1.
99
+
-`jump_to_keyframe 10` jump to keyframe 10.
100
+
101
+
`jump_to_keyframe_relative`: A specific command to move the animation by a number of keyframes relative to the current keyframe, takes a keyframe offset as argument.
90
102
When jumping between keyframes, the target keyframe index is adjusted to stay within the total number of available keyframes, avoiding invalid keyframe access.
91
103
eg:
92
104
93
-
-`jump_to_keyframe 1 true` jump to next keyframe.
94
-
-`jump_to_keyframe -1 true` jump to previous keyframe.
95
-
-`jump_to_keyframe 0 true` jump to closest keyframe.
96
-
-`jump_to_keyframe 0 false` jump to animation start frame.
0 commit comments